:root {
    --primary: #8b4a6b;
    --primary-dark: #5f2746;
    --primary-soft: #c58ca6;
    --secondary: #f4a261;
    --secondary-soft: #ffd9b8;
    --accent: #2a9d8f;
    --ink: #241d22;
    --muted: #6f6670;
    --surface: #fffaf7;
    --surface-strong: #fff;
    --surface-tint: #f7efe9;
    --border: #eaded6;
    --shadow-sm: 0 10px 30px rgba(95, 39, 70, 0.08);
    --shadow-md: 0 24px 60px rgba(95, 39, 70, 0.14);
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 38px;
    --radius-pill: 999px;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
    --space-8: 6rem;
    --container: 1180px;
    --font-heading: "Cairo", sans-serif;
    --font-body: "Tajawal", sans-serif;
    --font-quote: "Amiri", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(244, 162, 97, 0.16), transparent 26%),
        radial-gradient(circle at bottom left, rgba(42, 157, 143, 0.12), transparent 22%),
        var(--surface);
    line-height: 1.7;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: var(--space-8) 0;
}

.section-tint {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(247, 239, 233, 0.8));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
    border: 1px solid rgba(139, 74, 107, 0.14);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.section-head {
    max-width: 720px;
    margin: 0 auto var(--space-6);
    text-align: center;
}

.section-head h2 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    color: var(--primary-dark);
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 28px rgba(95, 39, 70, 0.22);
}

.btn-secondary {
    color: var(--ink);
    background: linear-gradient(135deg, #ffd8ab, var(--secondary));
    box-shadow: 0 14px 28px rgba(244, 162, 97, 0.22);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.74);
    color: var(--primary-dark);
    border-color: rgba(139, 74, 107, 0.18);
}

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

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 36px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.grid-3,
.grid-2,
.cards-grid {
    display: grid;
    gap: var(--space-4);
}

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

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(234, 222, 214, 0.9);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stack {
    display: grid;
    gap: var(--space-3);
}

.muted {
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-8) 0 var(--space-6);
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.24;
    z-index: -1;
}

.page-hero::before {
    width: 280px;
    height: 280px;
    top: 1rem;
    right: -4rem;
    background: var(--secondary);
}

.page-hero::after {
    width: 340px;
    height: 340px;
    left: -5rem;
    bottom: -3rem;
    background: var(--accent);
}

.page-hero h1 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    color: var(--primary-dark);
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill-list span,
.pill-list a,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(139, 74, 107, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-dark);
    font-weight: 700;
}

.filter-chip.is-active {
    background: var(--primary);
    color: #fff;
}

.story-card,
.resource-card,
.market-card,
.stat-card,
.quote-card,
.feature-card {
    overflow: hidden;
}

.story-card img,
.market-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.story-card .content,
.resource-card .content,
.market-card .content,
.feature-card .content {
    padding: var(--space-4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(139, 74, 107, 0.14), rgba(244, 162, 97, 0.18));
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.story-card h3,
.resource-card h3,
.market-card h3,
.feature-card h3,
.stat-card h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    color: var(--ink);
}

.story-card p,
.resource-card p,
.market-card p,
.feature-card p,
.stat-card p {
    margin: 0;
    color: var(--muted);
}

.founder {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.founder img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.founder .avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.story-meta,
.market-meta,
.article-meta,
.inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.94rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.stat-card {
    padding: var(--space-4);
    text-align: center;
}

.stat-card strong {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--primary-dark);
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-5);
    align-items: center;
}

.hero-panel,
.image-panel,
.impact-panel,
.contact-panel,
.form-panel,
.article-shell,
.timeline,
.faq-list {
    position: relative;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.faq-trigger::before {
    content: "+";
    order: -1;
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-trigger[aria-expanded="true"]::before {
    content: "−";
}

.faq-answer {
    margin-top: 1rem;
}

.search-box {
    width: min(680px, 100%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(139, 74, 107, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.empty-state {
    display: none;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.84);
    border: 1px dashed rgba(139, 74, 107, 0.26);
    color: var(--muted);
}

.empty-state.is-visible {
    display: block;
}

.hero-panel {
    display: grid;
    gap: var(--space-4);
}

.hero-panel h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.08;
    color: var(--ink);
}

.hero-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 1.14rem;
    max-width: 640px;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: fit-content;
    padding: 0.6rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(42, 157, 143, 0.14);
}

.image-panel {
    min-height: 560px;
}

.image-panel .portrait {
    position: absolute;
    inset: 0;
    border-radius: 42px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 10px solid rgba(255, 255, 255, 0.8);
}

.image-panel .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-note,
.floating-stat {
    position: absolute;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(234, 222, 214, 0.9);
    box-shadow: var(--shadow-sm);
}

.floating-note {
    left: -1rem;
    bottom: 2.5rem;
    max-width: 220px;
}

.floating-stat {
    top: 2rem;
    right: -1rem;
    text-align: center;
}

.floating-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--primary-dark);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
    gap: var(--space-5);
}

.article-shell {
    padding: var(--space-5);
}

.article-shell p {
    margin: 0 0 var(--space-4);
    font-size: 1.08rem;
}

.article-shell blockquote {
    margin: var(--space-5) 0;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(139, 74, 107, 0.08), rgba(244, 162, 97, 0.1));
    font-family: var(--font-quote);
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.story-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ink);
}

.story-content h2, .story-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.story-content p {
    margin-bottom: 1.25rem;
}

.story-content ul, .story-content ol {
    margin-bottom: 1.25rem;
    padding-inline-start: 1.75rem;
}

.story-content li {
    margin-bottom: 0.6rem;
}

.story-content blockquote {
    border-inline-start: 4px solid var(--accent);
    padding-inline-start: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--muted);
    font-size: 1.35rem;
}

.story-content img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.sidebar-card,
.faq-item,
.timeline-item,
.form-box,
.contact-box {
    padding: var(--space-4);
}

.sidebar-card h3,
.faq-item h3,
.timeline-item h3,
.form-box h3,
.contact-box h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

.sidebar-card p,
.faq-item p,
.timeline-item p,
.form-box p,
.contact-box p {
    margin: 0;
    color: var(--muted);
}

.timeline {
    display: grid;
    gap: var(--space-3);
}

.timeline-item {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(234, 222, 214, 0.95);
    border-radius: var(--radius-md);
}

.check-list {
    display: grid;
    gap: 0.75rem;
}

.check-list li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.check-list li::before {
    content: "●";
    color: var(--accent);
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-grid {
    display: grid;
    gap: var(--space-3);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field label {
    font-weight: 700;
    color: var(--primary-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(139, 74, 107, 0.16);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-note {
    font-size: 0.92rem;
    color: var(--muted);
}

.success-note {
    display: none;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(42, 157, 143, 0.12);
    border: 1px solid rgba(42, 157, 143, 0.2);
    color: #16675e;
    font-weight: 700;
}

.success-note.is-visible {
    display: block;
}

.form-error {
    background: rgba(180, 52, 52, 0.1);
    border-color: rgba(180, 52, 52, 0.22);
    color: #8e1f1f;
}

.cta-band {
    padding: var(--space-7) 0;
}

.cta-band .card {
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    overflow: hidden;
}

.cta-band h2,
.cta-band p {
    color: #fff;
}

.footer-copy {
    font-size: 0.95rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .grid-3,
    .cards-grid,
    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .image-panel {
        min-height: 460px;
    }
}

@media (max-width: 760px) {
    .section,
    .page-hero,
    .cta-band {
        padding: var(--space-7) 0;
    }

    .grid-3,
    .grid-2,
    .cards-grid,
    .stats-row,
    .field-row {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .image-panel {
        min-height: 360px;
    }

    .floating-note,
    .floating-stat {
        position: static;
        margin-top: 1rem;
    }
}
