﻿/*
 * InvestmentModes.css
 * Ministry of Investment & Foreign Trade — investment.gov.eg
 * Color theme: deep navy #0a2045, gold accent #c89d3c, white #fff
 */

:root {
    --moif-navy: #0a2045;
    --moif-navy-mid: #122c5e;
    --moif-navy-light: #1e3f80;
    --moif-gold: #c89d3c;
    --moif-gold-light: #e8c46a;
    --moif-white: #ffffff;
    --moif-off-white: #f5f7fb;
    --moif-text: #1a2740;
    --moif-muted: #6b7a99;
    --moif-border: #dde3ef;
    --moif-radius: 10px;
    --moif-radius-lg: 16px;
    --transition: 0.25s ease;
}

/* ─────────────────────────────────────────────
   PAGE SECTION WRAPPER
───────────────────────────────────────────── */
.investment-modes-area {
    padding: 72px 0 96px;
    background: var(--moif-off-white);
}

    .investment-modes-area .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
    }

/* ─────────────────────────────────────────────
   SECTION BLOCK (both sections share this)
───────────────────────────────────────────── */
.im-section {
    margin-bottom: 80px;
}

    .im-section:last-child {
        margin-bottom: 0;
    }

/* Section Header */
.im-section-header {
    margin-bottom: 40px;
}

.im-section-tag {
    display: inline-block;
    background: var(--moif-gold);
    color: var(--moif-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.im-section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--moif-navy);
    margin: 0 0 16px;
    line-height: 1.25;
}

.im-section-intro {
    font-size: 16px;
    color: var(--moif-muted);
    line-height: 1.75;
    max-width: 820px;
    margin: 0;
}

/* RTL section header alignment */
[dir="rtl"] .im-section-intro {
    max-width: 100%;
}

/* ─────────────────────────────────────────────
   INVESTMENT SYSTEM CARDS GRID
───────────────────────────────────────────── */
.im-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .im-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .im-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.im-card {
    background: var(--moif-white);
    border: 1px solid var(--moif-border);
    border-radius: var(--moif-radius-lg);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: default;
}

    .im-card::before {
        content: attr(data-index);
        position: absolute;
        top: 16px;
        right: 20px;
        font-size: 42px;
        font-weight: 800;
        color: var(--moif-border);
        line-height: 1;
        pointer-events: none;
        transition: color var(--transition);
    }

[dir="rtl"] .im-card::before {
    right: auto;
    left: 20px;
}

.im-card:hover {
    box-shadow: 0 8px 32px rgba(10,32,69,0.10);
    transform: translateY(-3px);
}

    .im-card:hover::before {
        color: var(--moif-gold-light);
    }

/* Featured card (5th) spans to fill row */
.im-card--featured {
    border-left: 4px solid var(--moif-gold);
    background: linear-gradient(135deg, #fff 80%, #fdf8ee 100%);
}

[dir="rtl"] .im-card--featured {
    border-left: none;
    border-right: 4px solid var(--moif-gold);
}

/* Card Icon */
.im-card-icon {
    width: 44px;
    height: 44px;
    background: var(--moif-off-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--moif-navy-light);
    transition: background var(--transition), color var(--transition);
}

    .im-card-icon svg {
        width: 22px;
        height: 22px;
    }

.im-card:hover .im-card-icon {
    background: var(--moif-navy);
    color: var(--moif-gold);
}

/* Card Title */
.im-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--moif-navy);
    margin: 0 0 10px;
    line-height: 1.35;
}

/* Card Description */
.im-card-desc {
    font-size: 14px;
    color: var(--moif-muted);
    line-height: 1.7;
    margin: 0;
}

/* Section Closing Paragraph */
.im-section-closing {
    background: var(--moif-navy);
    border-radius: var(--moif-radius-lg);
    padding: 28px 32px;
}

    .im-section-closing p {
        font-size: 15px;
        color: rgba(255,255,255,0.85);
        line-height: 1.75;
        margin: 0;
        text-align: center;
    }

/* ─────────────────────────────────────────────
   LEGAL FORMS LIST
───────────────────────────────────────────── */
.im-legal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 760px) {
    .im-legal-list {
        grid-template-columns: 1fr;
    }
}

.im-legal-item {
    background: var(--moif-white);
    border: 1px solid var(--moif-border);
    border-radius: var(--moif-radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: box-shadow var(--transition), transform var(--transition);
}

    .im-legal-item:hover {
        box-shadow: 0 6px 24px rgba(10,32,69,0.09);
        transform: translateY(-2px);
    }

/* Number badge */
.im-legal-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--moif-navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--moif-gold);
    letter-spacing: 0.03em;
}

.im-legal-body {
    flex: 1;
    min-width: 0;
}

    .im-legal-body h4 {
        font-size: 15px;
        font-weight: 700;
        color: var(--moif-navy);
        margin: 0 0 8px;
        line-height: 1.35;
    }

    .im-legal-body p {
        font-size: 14px;
        color: var(--moif-muted);
        line-height: 1.65;
        margin: 0 0 10px;
    }

.im-legal-law {
    display: inline-block;
    font-size: 12px;
    color: var(--moif-navy-light);
    background: var(--moif-off-white);
    border: 1px solid var(--moif-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 500;
}

/* ─────────────────────────────────────────────
   RTL OVERRIDES
───────────────────────────────────────────── */
[dir="rtl"] .im-legal-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .im-section-title,
[dir="rtl"] .im-section-tag,
[dir="rtl"] .im-section-intro,
[dir="rtl"] .im-card-title,
[dir="rtl"] .im-card-desc,
[dir="rtl"] .im-legal-body h4,
[dir="rtl"] .im-legal-body p {
    text-align: right;
}

[dir="rtl"] .im-section-closing p {
    text-align: center;
}
