/* Darbi — landing page styles
   Palette sourced from darbi.png: deep navy + teal/emerald gradient + white.
   Layout uses CSS logical properties throughout so the whole page mirrors
   automatically when <html dir="rtl"> is set by the language switcher. */

:root {
    --navy: #14213d;
    --navy-dark: #0d1628;
    --teal: #1b9c77;
    --teal-light: #2fd9a8;
    --white: #ffffff;
    --bg-soft: #f7f9f8;
    --text: #223046;
    --text-muted: #56637a;
    --border: #e4e9ec;
    --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
    --shadow-hover: 0 16px 40px rgba(20, 33, 61, 0.14);
    --radius: 16px;
    --radius-sm: 10px;
    --gradient-brand: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    --container-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: clamp(56px, 8vw, 96px);
}

.section--soft {
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
    margin-block-end: clamp(32px, 5vw, 48px);
}

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    margin-block-end: 12px;
}

.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 14px auto 0;
    background: var(--gradient-brand);
    border-radius: 4px;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-body p {
    margin-block-end: 16px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.narrow {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

/* ---------- Buttons & pills ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn--primary:hover {
    box-shadow: var(--shadow-hover);
}

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

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

.pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ---------- Navbar ---------- */

.navbar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 16px rgba(20, 33, 61, 0.06);
    transition: transform 0.3s ease;
}

.navbar.navbar--hidden {
    transform: translateY(-100%);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--navy);
}

.navbar-brand img {
    height: 58px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.navbar-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: color 0.2s ease;
}

.navbar-links a:hover {
    color: var(--teal);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 4px;
}

.lang-switch button {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.lang-switch button.active {
    background: var(--navy);
    color: var(--white);
}

.navbar-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    color: var(--navy);
    cursor: pointer;
}

@media (max-width: 992px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-links {
        display: none;
        position: absolute;
        inset-inline: 0;
        inset-block-start: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        box-shadow: var(--shadow);
    }

    .navbar-links.is-open {
        display: flex;
    }
}

/* ---------- Hero ---------- */

.hero {
    padding-block-start: calc(clamp(56px, 8vw, 96px) + 84px);
    padding-block-end: clamp(56px, 8vw, 96px);
    background: var(--gradient-brand);
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-eyebrow {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--teal-light);
    margin-block-end: 14px;
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.25;
    margin-block-end: 18px;
}

.hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    margin-block-end: 14px;
}

.hero .pill-row {
    justify-content: flex-start;
    margin-block: 22px;
}

@media (max-width: 992px) {
    .hero .pill-row {
        justify-content: center;
    }
}

.hero .pill {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-block-start: 8px;
}

@media (max-width: 992px) {
    .hero-ctas {
        justify-content: center;
    }
}

.hero .btn--outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

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

.hero-logo-wrap {
    display: flex;
    justify-content: center;
}

.hero-logo-card {
    justify-content: center;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 36px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.hero-logo-card img {
    width: min(280px, 100%);
    justify-content: center;
    display: flex;
    margin-inline: auto;
}

/* ---------- Card grids (why / hybrid model) ---------- */

.grid {
    display: grid;
    gap: 24px;
}

.grid--why {
    grid-template-columns: repeat(4, 1fr);
}

.grid--model {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .grid--why {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--model {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .grid--why {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

.card--challenge {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.card-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.card-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.02rem;
}

.model-card {
    text-align: center;
}

.model-card .badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--white);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-block-end: 16px;
}

.model-card h3 {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 800;
    margin-block-end: 8px;
}

.model-card p {
    color: var(--text-muted);
    margin-block-end: 14px;
}

.model-card .pill-row {
    margin-block-start: 6px;
}

.model-outro {
    text-align: center;
    font-weight: 700;
    color: var(--navy);
    margin-block-start: 32px;
    font-size: 1.05rem;
}

/* ---------- Areas of impact chip grid ---------- */

.grid--impact {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .grid--impact {
        grid-template-columns: repeat(2, 1fr);
    }
}

.impact-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.impact-chip:hover {
    transform: translateY(-3px);
}

.impact-chip .card-icon {
    font-size: 2rem;
    margin-block-end: 8px;
}

.impact-chip span {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    display: block;
}

/* ---------- How it works (alternating blocks) ---------- */

.how-block {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    align-items: start;
    padding-block: 28px;
    border-block-end: 1px solid var(--border);
}

.how-block:last-of-type {
    border-block-end: none;
}

.how-block .badge {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.how-block h3 {
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 800;
    margin-block-end: 10px;
}

.how-block p {
    color: var(--text-muted);
    margin-block-end: 12px;
}

.how-block .pill-row {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .how-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .how-block .badge {
        margin-inline: auto;
    }

    .how-block .pill-row {
        justify-content: center;
    }
}

.pull-quote {
    margin-block-start: 40px;
    text-align: center;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    font-weight: 700;
    color: var(--navy);
    font-style: italic;
    max-width: 760px;
    margin-inline: auto;
}

.pull-quote + .pill {
    display: block;
    margin: 18px auto 0;
    width: fit-content;
    background: var(--gradient-brand);
    color: var(--white);
    border: none;
}

/* ---------- Two-column checklist (creates impact) ---------- */

.grid--creates {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .grid--creates {
        grid-template-columns: 1fr;
    }
}

.checklist-card h3 {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
    margin-block-end: 16px;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
}

.checklist li::before {
    content: "✓";
    color: var(--teal);
    font-weight: 800;
    flex-shrink: 0;
}

.creates-outro {
    text-align: center;
    margin-block-start: 28px;
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- Vision ---------- */

.vision-panel {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: clamp(32px, 6vw, 56px);
    text-align: center;
    max-width: 820px;
    margin-inline: auto;
}

.vision-panel p {
    color: var(--text);
    font-size: 1.1rem;
    margin-block-end: 16px;
}

/* ---------- Founder ---------- */

.founder {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .founder {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.founder-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

.founder-name {
    margin-block-start: 16px;
    font-weight: 800;
    color: var(--navy);
    font-size: 1.15rem;
}

.founder-role {
    color: var(--teal);
    font-weight: 600;
    font-size: 0.92rem;
    margin-block-start: 4px;
}

.founder-bio a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- Join the ecosystem ---------- */

.grid--join {
    grid-template-columns: repeat(4, 1fr);
    margin-block: 28px;
}

@media (max-width: 992px) {
    .grid--join {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .grid--join {
        grid-template-columns: repeat(2, 1fr);
    }
}

.join-cta {
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    margin-block: 20px;
}

.join-actions {
    text-align: center;
}

/* ---------- Footer ---------- */

.footer {
    background: var(--bg-soft);
    border-block-start: 1px solid var(--border);
    color: var(--text-muted);
    padding-block: 56px 28px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block-end: 12px;
}

@media (max-width: 768px) {
    .footer-brand {
        justify-content: center;
    }
}

.footer-brand img {
    height: 34px;
}

.footer h4 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    margin-block-end: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.footer-bottom {
    margin-block-start: 40px;
    padding-block-start: 20px;
    border-block-start: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- RTL overrides ---------- */
/* Logical properties above handle most of the mirroring automatically.
   These rules cover the few cases that need an explicit flip. */

[dir="rtl"] .hero {
    background: linear-gradient(-135deg, var(--navy) 0%, var(--teal) 100%);
}

[dir="rtl"] .navbar-brand,
[dir="rtl"] .footer-brand {
    letter-spacing: normal;
}

/* Note: .card--challenge and .checklist li use flex-direction: row, which
   already follows the inline axis (mirrors under dir="rtl" automatically) —
   no explicit row-reverse override needed. */
