﻿/* رواق العِشرة: نسخة HTML مستقلة، ورق عاجي، أخضر بترولي، ذهب رملي، وبطاقات متداخلة. */
:root {
    --paper: #f8f6ef;
    --white: #fffefa;
    --ink: #173d3e;
    --ink-soft: #557375;
    --petrol: #0f5d5e;
    --petrol-dark: #0a494b;
    --sand: #c99b4a;
    --sand-pale: #f5ead4;
    --line: rgba(15, 93, 94, 0.13);
    --shadow: 0 20px 65px rgba(38, 65, 57, 0.10);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Cairo", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a, button {
    font: inherit;
}

.contact-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

    .contact-page::before {
        position: absolute;
        z-index: -2;
        inset: 0 0 auto;
        height: 390px;
        content: "";
        background: radial-gradient(circle at 75% 6%, rgba(201,155,74,.07) 0 1px, transparent 1px 33px), radial-gradient(circle at 76% 6%, rgba(15,93,94,.05) 0 1px, transparent 1px 52px), linear-gradient(180deg, rgba(248,246,239,.62), rgba(248,246,239,.96));
        background-size: 70px 70px, 110px 110px, auto;
    }

    .contact-page::after {
        position: absolute;
        z-index: -1;
        top: 108px;
        left: -165px;
        width: 380px;
        height: 380px;
        content: "";
        border: 1px solid rgba(201,155,74,.22);
        border-radius: 50%;
        box-shadow: 0 0 0 35px rgba(201,155,74,.04), 0 0 0 88px rgba(15,93,94,.025);
    }

.site-header {
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 48px));
    min-height: 92px;
    margin: 0 auto;
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-symbol, .footer-symbol {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
}

    .brand-symbol i, .brand-symbol b, .footer-symbol i, .footer-symbol b {
        position: absolute;
        display: block;
        width: 22px;
        height: 22px;
        border: 3px solid var(--petrol);
        border-radius: 50%;
    }

    .brand-symbol i, .footer-symbol i {
        top: 7px;
        right: 1px;
    }

    .brand-symbol b, .footer-symbol b {
        top: 7px;
        left: 1px;
    }

    .brand-symbol em, .footer-symbol em {
        position: absolute;
        top: 22px;
        right: 15px;
        display: block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--sand);
    }

.brand-copy {
    display: grid;
    gap: 0;
    line-height: 1;
}

.brand-ar {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.07em;
}

.brand-en {
    direction: ltr;
    color: #7d9692;
    font-family: "DM Mono", monospace;
    font-size: .56rem;
    font-weight: 500;
    letter-spacing: .08em;
}

.desktop-nav {
    align-items: center;
    gap: 28px;
}

    .desktop-nav a {
        color: var(--ink-soft);
        font-size: .82rem;
        font-weight: 600;
        text-decoration: none;
        transition: color 160ms var(--ease-out);
    }

        .desktop-nav a:hover, .desktop-nav a.active {
            color: var(--petrol);
        }

.header-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--petrol);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

    .header-back:hover {
        color: var(--petrol-dark);
        transform: translateX(3px);
    }

.content-wrap {
    position: relative;
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 86px 0 92px;
}

.hero-rings {
    position: absolute;
    z-index: -1;
    top: 60px;
    left: -98px;
    width: 205px;
    height: 205px;
    border: 1px solid rgba(15,93,94,.15);
    border-radius: 50%;
}

    .hero-rings::before {
        position: absolute;
        top: 27px;
        right: -54px;
        width: 155px;
        height: 155px;
        content: "";
        border: 1px solid rgba(15,93,94,.15);
        border-radius: 50%;
    }

    .hero-rings::after {
        position: absolute;
        right: 15px;
        bottom: 7px;
        width: 10px;
        height: 10px;
        content: "";
        border-radius: 50%;
        background: var(--sand);
        box-shadow: 0 0 0 6px rgba(201,155,74,.12);
    }

.page-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin: 0 0 18px;
    color: #98702c;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
}

    .page-kicker::before {
        width: 8px;
        height: 8px;
        content: "";
        border-radius: 50%;
        background: var(--sand);
        box-shadow: 0 0 0 5px rgba(201,155,74,.12);
    }

.page-heading {
    max-width: 690px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1.17;
}

    .page-heading em {
        color: var(--petrol);
        font-style: normal;
    }

.page-intro {
    max-width: 620px;
    margin: 18px 0 48px;
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 500;
    line-height: 2;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(270px, .8fr) minmax(0, 1.38fr);
    align-items: center;
}

.promise-card, .contact-card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.promise-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 442px;
    overflow: hidden;
    padding: 34px;
    border-radius: 8px 30px 8px 30px;
    background: radial-gradient(ellipse at 12% 14%, rgba(246,230,200,.32) 0 2%, transparent 28%), radial-gradient(ellipse at 86% 102%, rgba(201,155,74,.24) 0 9%, transparent 31%), repeating-linear-gradient(148deg, rgba(255,255,255,.04) 0 1px, transparent 1px 13px), linear-gradient(152deg, #2a7774 0%, #145d5b 43%, #0a494b 100%);
    color: #fff;
}

.inner-frame {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 3px 22px 3px 22px;
    pointer-events: none;
}

.card-rings {
    position: absolute;
    top: 46px;
    right: 31px;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(246,230,200,.46);
    border-radius: 50%;
    opacity: .8;
}

    .card-rings::before {
        position: absolute;
        top: 20px;
        right: -32px;
        width: 78px;
        height: 78px;
        content: "";
        border: 1px solid rgba(246,230,200,.36);
        border-radius: 50%;
    }

.promise-content {
    position: relative;
    z-index: 1;
}

.promise-card .small-label {
    margin: 0 0 15px;
    color: #ecd5a8;
    font-size: .73rem;
    font-weight: 700;
}

.promise-card h2 {
    max-width: 300px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.45;
}

.promise-card p:not(.small-label) {
    max-width: 310px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.78);
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.9;
}

.help-row {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 32px;
    color: #f6e6c8;
    font-size: .75rem;
    font-weight: 700;
}

    .help-row span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 27px;
        height: 27px;
        border: 1px solid rgba(246,230,200,.45);
        border-radius: 50%;
    }

.contact-card {
    position: relative;
    z-index: 2;
    min-height: 395px;
    overflow: hidden;
    margin-block: 23px;
    margin-inline-start: -56px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 30px 8px 30px 8px;
    background: var(--white);
}

    .contact-card::before {
        position: absolute;
        top: -80px;
        left: -80px;
        width: 210px;
        height: 210px;
        content: "";
        border: 1px solid rgba(15,93,94,.08);
        border-radius: 50%;
        box-shadow: 0 0 0 28px rgba(15,93,94,.025), 0 0 0 58px rgba(15,93,94,.018);
    }

.card-gold-dot {
    position: absolute;
    top: 78px;
    left: 76px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sand);
    box-shadow: 0 0 0 6px rgba(201,155,74,.10);
}

.mail-stamp {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 18px 18px 18px 4px;
    background: var(--sand-pale);
    color: #a8792c;
    font-size: 1.35rem;
    box-shadow: inset 0 0 0 1px rgba(201,155,74,.2), 0 8px 20px rgba(201,155,74,.10);
}

.contact-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.contact-card > p {
    position: relative;
    z-index: 1;
    max-width: 470px;
    margin: 10px 0 28px;
    color: var(--ink-soft);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.9;
}

.email-well {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 10px 9px 9px;
    border: 1px solid #cdddcf;
    border-radius: 17px;
    background: linear-gradient(100deg, #f7faf6, #eff5ee);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.email-rings {
    position: absolute;
    top: 50%;
    left: 94px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(15,93,94,.09);
    border-radius: 50%;
    transform: translateY(-50%);
}

    .email-rings::before {
        position: absolute;
        top: -1px;
        left: -18px;
        width: 28px;
        height: 28px;
        content: "";
        border: 1px solid rgba(15,93,94,.09);
        border-radius: 50%;
    }

.email-address {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 8px 11px;
    color: var(--petrol-dark);
    direction: ltr;
    font-family: "DM Mono", monospace;
    font-size: clamp(.8rem, 2vw, .98rem);
    font-weight: 500;
    letter-spacing: -.04em;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .email-address:hover {
        text-decoration: underline;
        text-underline-offset: 5px;
    }

.copy-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--petrol);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

    .copy-button:hover {
        background: var(--petrol-dark);
        color: #fff;
        box-shadow: 0 8px 18px rgba(15,93,94,.22);
    }

    .copy-button:active {
        transform: scale(.97);
    }

.contact-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px !important;
    margin-bottom: 0 !important;
    color: #6e8984 !important;
    font-size: .77rem !important;
}

.site-footer {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 24px 0 30px;
    color: #79908b;
    font-size: .71rem;
    font-weight: 600;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--petrol);
    text-decoration: none;
}

.footer-symbol {
    width: 20px;
    height: 20px;
}

    .footer-symbol i, .footer-symbol b {
        width: 12px;
        height: 12px;
        border-width: 1.8px;
    }

    .footer-symbol i {
        top: 4px;
        right: 1px;
    }

    .footer-symbol b {
        top: 4px;
        left: 1px;
    }

    .footer-symbol em {
        top: 12px;
        right: 8px;
        width: 3px;
        height: 3px;
    }

.footer-brand i {
    width: 5px;
    height: 5px;
    margin-inline: 3px 1px;
    border-radius: 50%;
    background: var(--sand);
}

.toast {
    background: var(--petrol);
    color: #fff;
    box-shadow: 0 14px 40px rgba(15,93,94,.26);
}

:focus-visible {
    outline: 3px solid rgba(201,155,74,.7);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .desktop-nav {
        display: none !important;
    }
}

@media (max-width: 780px) {
    .header-container {
        width: min(100% - 32px, 1180px);
        min-height: 76px;
    }

    .content-wrap {
        width: min(100% - 32px, 1100px);
        padding: 57px 0 62px;
    }

    .page-intro {
        margin-bottom: 34px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-card, .promise-card {
        min-height: auto;
    }

    .contact-card {
        margin: 0;
    }

    .promise-card {
        min-height: 330px;
    }

    .site-footer {
        width: min(100% - 32px, 1180px);
    }

    .footer-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 430px) {
    .brand-symbol {
        width: 34px;
        height: 34px;
    }

    .brand-ar {
        font-size: 1.25rem;
    }

    .header-back {
        font-size: .74rem;
    }

    .email-well {
        align-items: stretch;
        flex-direction: column;
    }

    .email-rings {
        display: none;
    }

    .email-address {
        padding-inline: 6px;
        font-size: .78rem;
    }

    .copy-button {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .page-kicker, .page-heading, .page-intro, .contact-card, .promise-card {
        animation: rise-in 540ms var(--ease-out) both;
    }

    .page-heading {
        animation-delay: 70ms;
    }

    .page-intro {
        animation-delay: 140ms;
    }

    .contact-card {
        animation-delay: 210ms;
    }

    .promise-card {
        animation-delay: 285ms;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* صفحة من نحن: امتداد رواق العِشرة عبر مساحة قراءة هادئة وبطاقة حديث دافئة. */
.about-page::before {
    height: 440px;
}

.about-content {
    position: relative;
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 82px 0 86px;
}

.about-rings {
    position: absolute;
    top: 86px;
    left: -95px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(15,93,94,.14);
    border-radius: 50%;
}

    .about-rings::before {
        position: absolute;
        top: 35px;
        right: -60px;
        width: 150px;
        height: 150px;
        content: "";
        border: 1px solid rgba(15,93,94,.14);
        border-radius: 50%;
    }

    .about-rings::after {
        position: absolute;
        right: 13px;
        bottom: 7px;
        width: 9px;
        height: 9px;
        content: "";
        border-radius: 50%;
        background: var(--sand);
        box-shadow: 0 0 0 6px rgba(201,155,74,.11);
    }

.about-intro {
    position: relative;
    max-width: 770px;
}

    .about-intro h1 {
        max-width: 750px;
        margin: 0;
        color: var(--ink);
        font-size: clamp(2.25rem, 5.8vw, 4.25rem);
        font-weight: 800;
        letter-spacing: -.06em;
        line-height: 1.22;
    }

        .about-intro h1 em {
            color: var(--petrol);
            font-style: normal;
        }

    .about-intro > p:last-child {
        max-width: 650px;
        margin: 20px 0 48px;
        color: var(--ink-soft);
        font-size: 1rem;
        font-weight: 500;
        line-height: 2.05;
    }

.about-grid {
    display: grid;
    grid-template-columns: minmax(250px,.75fr) minmax(0,1.45fr);
    align-items: center;
}

.mission-card {
    position: relative;
    z-index: 1;
    min-height: 365px;
    margin-inline-start: -42px;
    padding: 40px 37px;
    border: 1px solid var(--line);
    border-radius: 8px 28px 8px 28px;
    background: linear-gradient(145deg,#176663,#0a494b);
    box-shadow: var(--shadow);
    color: #fff;
}

    .mission-card::before {
        position: absolute;
        inset: 14px;
        content: "";
        border: 1px solid rgba(255,255,255,.24);
        border-radius: 3px 18px 3px 18px;
        pointer-events: none;
    }

    .mission-card > * {
        position: relative;
        z-index: 1;
    }

.mission-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    margin-bottom: 24px;
    border: 1px solid rgba(246,230,200,.44);
    border-radius: 14px 14px 14px 3px;
    color: #ecd5a8;
    font-size: 1.7rem;
    line-height: 1;
}

.mission-card h2 {
    margin: 0;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
}

.mission-card p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.77);
    font-size: .87rem;
    font-weight: 500;
    line-height: 1.95;
}

.mission-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: #f3dcad;
    font-size: .73rem;
    font-weight: 700;
}

    .mission-line span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--sand);
        box-shadow: 0 0 0 5px rgba(201,155,74,.12);
    }

.hadith-card {
    position: relative;
    min-height: 420px;
    margin: 0;
    padding: clamp(36px,5vw,62px) clamp(36px,6vw,78px) clamp(36px,5vw,52px);
    overflow: hidden;
    border: 1px solid rgba(201,155,74,.26);
    border-radius: 30px 8px 30px 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

    .hadith-card::before {
        position: absolute;
        top: -105px;
        left: -103px;
        width: 260px;
        height: 260px;
        content: "";
        border: 1px solid rgba(201,155,74,.21);
        border-radius: 50%;
        box-shadow: 0 0 0 38px rgba(201,155,74,.04), 0 0 0 85px rgba(15,93,94,.02);
    }

    .hadith-card::after {
        position: absolute;
        right: 45px;
        bottom: 38px;
        width: 78px;
        height: 1px;
        content: "";
        background: rgba(201,155,74,.6);
    }

    .hadith-card figcaption {
        position: relative;
        z-index: 1;
        margin-bottom: 18px;
        color: #98702c;
        font-size: .74rem;
        font-weight: 800;
    }

.hadith-mark {
    position: absolute;
    top: 39px;
    left: 53px;
    color: rgba(201,155,74,.16);
    font-family: Georgia, serif;
    font-size: 8rem;
    font-weight: bold;
    line-height: .5;
}

.hadith-card blockquote {
    position: relative;
    z-index: 1;
    max-width: 670px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.28rem,2.7vw,2rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 2.02;
}

.hadith-card cite {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 26px;
    color: var(--petrol);
    font-size: .8rem;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 780px) {
    .about-content {
        width: min(100% - 32px, 1100px);
        padding: 58px 0 62px;
    }

    .about-intro > p:last-child {
        margin-bottom: 34px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .mission-card {
        min-height: auto;
        margin: 0;
        border-radius: 8px 25px 8px 25px;
    }

    .hadith-card {
        min-height: 0;
        margin-top: -10px;
        padding-top: 54px;
        border-radius: 26px 8px 26px 8px;
    }

        .hadith-card blockquote {
            font-size: 1.25rem;
            line-height: 2;
        }
}
