:root {
    /* اللوحة النهائية — فيروزي + ذهبي + أبيض/أسود */
    --primary: #008787;          /* فيروزي داكن */
    --secondary: #45AAAC;        /* فيروزي متوسط */
    --soft: #8FCACA;             /* فيروزي فاتح */
    --accent: #C18437;           /* ذهبي */

    --ink: #000000;              /* أسود — النص */
    --ink-soft: #000000;         /* أسود — الأقسام الداكنة */
    --paper: #FFFFFF;            /* أبيض — الخلفية */
    --surface: #FFFFFF;          /* أبيض — البطاقات */
    --copper: #C18437;           /* مرادف الذهبي */
    --copper-dark: #C18437;      /* مرادف الذهبي */
    --sage: #45AAAC;
    --muted: rgba(0, 0, 0, .6);
    --line: rgba(0, 0, 0, .12);
    --shadow: 0 18px 55px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    flex-shrink: 0;
}

.site-header .navbar {
    min-height: 86px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

body { padding-top: 86px; }

main, #main-content { flex: 1 0 auto; }

.site-footer { flex-shrink: 0; }

a { color: inherit; }

.skip-link {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 1100;
    padding: .65rem 1rem;
    color: #fff;
    background: var(--ink);
    border-radius: .5rem;
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.announcement-bar {
    padding: .4rem 0;
    color: #fff;
    background: var(--ink);
    font-size: .78rem;
}

.announcement-bar a { color: var(--accent); }

.navbar-brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--ink);
    text-decoration: none;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 3px;
}

.brand-mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--ink);
    border: 1px solid #333;
    border-radius: 50% 50% 45% 45%;
    place-items: center;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .06);
}

.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 1.03rem; }
.brand-copy small { margin-top: .15rem; color: var(--muted); font-size: .7rem; }

.navbar-nav { gap: .15rem; }
.navbar .nav-link { position: relative; padding: .7rem .8rem !important; color: #1A1A1A; font-weight: 600; font-size: .9rem; }
.navbar .nav-link::after { position: absolute; right: .8rem; bottom: .35rem; width: 0; height: 2px; content: ''; background: var(--primary); transition: width .2s ease; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 24px; }
.navbar .nav-link.active { color: var(--primary); }

.btn-brand, .btn-outline-brand {
    min-height: 44px;
    padding: .65rem 1.2rem;
    border-radius: .35rem;
    font-weight: 700;
}

.btn-brand { color: #fff; background: var(--primary); border: 1px solid var(--primary); }
.btn-brand:hover, .btn-brand:focus { color: #fff; background: #006E6E; border-color: #006E6E; }
.btn-outline-brand { color: var(--primary); border: 1px solid rgba(0, 135, 135, .5); }
.btn-outline-brand:hover { color: #fff; background: var(--primary); border-color: var(--primary); }

.hero {
    position: relative;
    min-height: 70vh;
    display: grid;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #0a1628 0%, #0f2035 50%, #0a1628 100%);
    isolation: isolate;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
}

.hero-bg-shapes .shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(0, 135, 135, .2) 0%, transparent 70%);
}

.hero-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(193, 132, 55, .15) 0%, transparent 70%);
}

.hero-bg-shapes .shape-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 135, 135, .08) 0%, transparent 70%);
}

.hero-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, .15));
    animation: heroLogoFloat 5s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: rgba(255, 255, 255, .7);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .8rem;
}

.section-desc {
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}

.section { padding: 90px 0; }
.section-light { background: var(--surface); }
.section-dark { color: #fff; background: var(--ink-soft); }
.section-heading { max-width: 680px; margin-bottom: 2.4rem; }
.section-heading h2, .page-intro h1 { margin: .6rem 0 .8rem; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; line-height: 1.4; }
.section-heading p, .page-intro p { color: var(--muted); }
.section-dark .section-heading p { color: rgba(255, 255, 255, .72); }

.svc-card {
    height: 100%;
    padding: 2rem 1.5rem;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height .3s ease;
    border-radius: 0 12px 12px 0;
}

.svc-card:hover {
    color: inherit;
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(0, 135, 135, .12);
    transform: translateY(-6px);
}

.svc-card:hover::before {
    height: 100%;
}

.svc-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    place-items: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0, 135, 135, .25);
}

.svc-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--ink);
}

.svc-card p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
}

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-10px);
    transition: all .3s ease;
}

.svc-card:hover .svc-link {
    opacity: 1;
    transform: translateX(0);
}

.page-intro { padding: 65px 0 55px; background: linear-gradient(135deg, #FFFFFF 0%, rgba(143, 202, 202, .45) 100%); border-bottom: 1px solid var(--line); }
.page-intro p { max-width: 700px; margin: 0; }
.breadcrumb { margin-bottom: .8rem; font-size: .82rem; }
.breadcrumb a { color: var(--copper-dark); }

.content-panel { padding: clamp(1.3rem, 4vw, 2.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; box-shadow: var(--shadow); }
.video-shell { overflow: hidden; background: #000; border: 6px solid var(--primary); border-radius: .5rem; box-shadow: var(--shadow); }
.video-shell iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.donation-box { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.donation-box::after { position: absolute; left: -70px; bottom: -100px; width: 280px; height: 280px; content: ''; border: 45px solid rgba(193, 132, 55, .08); border-radius: 50%; }
.benefitpay-steps { position: relative; z-index: 1; color: rgba(255, 255, 255, .9); padding-right: 1.25rem; }
.benefitpay-steps li { margin-bottom: .6rem; }
.benefitpay-steps strong { color: #C18437; }
.benefitpay-steps-light { color: var(--ink); padding-right: 1.25rem; }
.benefitpay-steps-light li { margin-bottom: .6rem; }
.benefitpay-steps-light strong { color: var(--primary); }
.benefitpay-alias { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1rem; }
.iban-label { color: rgba(255, 255, 255, .7); font-size: .88rem; }
.iban-number { position: relative; z-index: 1; margin: .5rem 0 1.5rem; color: #C18437; font-size: clamp(1.15rem, 3vw, 1.75rem); font-weight: 700; direction: ltr; text-align: right; overflow-wrap: anywhere; }

.social-card { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: .45rem; color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.social-card:hover { color: inherit; border-color: var(--accent); transform: translateY(-4px); }
.social-card .social-icon { display: grid; flex: 0 0 52px; width: 52px; height: 52px; color: #fff; background: var(--primary); border-radius: 50%; place-items: center; font-size: 1.25rem; }
.social-card strong { display: block; }
.social-card small { color: var(--muted); }

.member-card { height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: .45rem; }

.member-photo { display: grid; aspect-ratio: 4 / 4.35; color: rgba(255, 255, 255, .8); background: linear-gradient(145deg, #008787, #000); place-items: center; font-size: 3rem; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-info { padding: 1.2rem; border-top: 3px solid var(--primary); text-align: center; }
.member-info h2 { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 700; }
.member-info p { margin: 0; font-size: .87rem; }
.member-info .member-position-primary { color: var(--accent); font-weight: 700; }
.member-info .member-position-secondary { color: var(--accent); font-weight: 400; font-size: .8rem; margin-top: .2rem; }
.member-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.member-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .3rem .5rem; border-radius: .3rem; font-size: .7rem; font-weight: 700; text-decoration: none; color: var(--primary); background: transparent; border: 1px solid var(--primary); }
.member-btn:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.member-btn-wa { color: #25D366; border-color: #25D366; }
.member-btn-wa:hover { color: #fff; background: #25D366; border-color: #25D366; }

.form-label { font-weight: 700; }
.form-control { min-height: 48px; border-color: #45AAAC; border-radius: .35rem; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .25rem rgba(0, 135, 135, .16); }
.form-text { color: rgba(0, 0, 0, .55); }
.status-result { padding: 1.3rem; background: rgba(143, 202, 202, .35); border-right: 4px solid var(--primary); border-radius: .35rem; }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; color: #fff; background: var(--sage); border-radius: 2rem; font-size: .8rem; font-weight: 700; }
.empty-state { padding: 3rem 1rem; color: var(--muted); text-align: center; }
.empty-state i { display: block; margin-bottom: 1rem; color: var(--accent); font-size: 2.5rem; }

.site-footer {
    padding: 1.2rem 0;
    color: rgba(255, 255, 255, .85);
    background: #000;
    border-top: 4px solid var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .2s;
}

.footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 991.98px) {
    body { padding-top: 74px; }
    .site-header .navbar { min-height: 74px; }
    .navbar-collapse { margin-top: .8rem; padding: .8rem 0 1rem; border-top: 1px solid var(--line); }
    .navbar .nav-link { min-height: 44px; }
    .hero { min-height: 60vh; padding: 100px 0 60px; }
}

@media (max-width: 767.98px) {
    .announcement-bar .container { justify-content: center !important; }
    .announcement-bar span { display: none; }
    .brand-mark { width: 42px; height: 42px; }
    .hero { min-height: 55vh; padding: 90px 0 50px; }
    .hero-logo { width: 100px; height: 100px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: .95rem; }
    .section { padding: 64px 0; }
    .svc-card { padding: 1.5rem 1.2rem; }
    .svc-icon { width: 48px; height: 48px; font-size: 1.1rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
