/* ============================================
   وِصلة آب لخدمات الأعمال
   Midnight Luxury Theme - RTL
   ============================================ */

:root {
    /* الألوان الأساسية */
    --color-bg: #0a0a0f;
    --color-bg-elevated: #13131a;
    --color-bg-card: #16161f;
    --color-border: #26262f;
    --color-border-light: #34343f;

    /* الذهبي */
    --color-gold: #d4af37;
    --color-gold-light: #f0d878;
    --color-gold-dim: #8a7228;

    /* النصوص */
    --color-text: #f5f3ee;
    --color-text-muted: #a8a8b3;
    --color-text-dim: #6e6e7a;

    /* الحالة */
    --color-success: #3ecf8e;
    --color-whatsapp: #25d366;

    /* الخطوط */
    --font-display: 'Cairo', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', 'Cairo', sans-serif;

    /* القياسات */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 10px 40px -15px rgba(0, 0, 0, 0.6);
    --shadow-gold-glow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 8px 30px -10px rgba(212, 175, 55, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: var(--color-gold-light);
    transition: color .2s ease;
}

a:hover {
    color: var(--color-gold);
}

::selection {
    background: var(--color-gold-dim);
    color: var(--color-bg);
}

/* ====== خلفية مزخرفة ====== */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.08), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.05), transparent 40%),
        var(--color-bg);
    pointer-events: none;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 60%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* ====== شريط علوي ====== */
.navbar {
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    padding-block: .85rem;
    z-index: 1000;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-text) !important;
    letter-spacing: .5px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: var(--shadow-gold-glow);
    flex-shrink: 0;
}

.navbar .nav-link {
    color: var(--color-text-muted);
    font-weight: 600;
    padding: .5rem 1rem !important;
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--color-gold-light);
}

.navbar-toggler {
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

/* ====== الأزرار ====== */
.btn {
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: .7rem 1.6rem;
    transition: all .25s ease;
    border: 1px solid transparent;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg);
    box-shadow: var(--shadow-gold-glow);
}

.btn-gold:hover {
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(212, 175, 55, 0.45);
}

.btn-outline-gold {
    border-color: var(--color-gold-dim);
    color: var(--color-gold-light);
    background: transparent;
}

.btn-outline-gold:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.08);
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    color: #fff;
    background: #1ebe5d;
    transform: translateY(-2px);
}

.btn-sm-pill {
    border-radius: 999px;
    padding: .45rem 1.1rem;
    font-size: .85rem;
}

/* ====== Hero ====== */
.hero {
    padding-top: 7.5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-gold-light);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: 1px;
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
    padding: .4rem 1rem;
    background: rgba(212, 175, 55, 0.06);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero h1 .gold-text {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 620px;
}

/* بطاقة الإيصال - العنصر المميز في الـ Hero */
.receipt-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    max-width: 380px;
    margin-inline-start: auto;
}

.receipt-card::before {
    content: '';
    position: absolute;
    top: -60px;
    inset-inline-end: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
}

.receipt-card .receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--color-border-light);
    margin-bottom: 1rem;
}

.receipt-card .receipt-header .status-dot {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--color-success);
    font-weight: 700;
}

.receipt-card .receipt-header .status-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.15);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    font-size: .92rem;
}

.receipt-row .label {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: .55rem;
}

.receipt-row .icon-chip {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.receipt-row .icon-chip .icon {
    width: 15px;
    height: 15px;
}

.receipt-row .value {
    font-weight: 700;
}

.receipt-row .value.done {
    color: var(--color-success);
}

.receipt-card .receipt-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--color-border-light);
    text-align: center;
    color: var(--color-text-dim);
    font-size: .8rem;
    letter-spacing: 1.5px;
    font-family: monospace;
}

/* ====== الإحصائيات ====== */
.stats-strip {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-block: 2.5rem;
    background: var(--color-bg-elevated);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--color-gold-light);
    line-height: 1;
}

.stat-item .stat-label {
    color: var(--color-text-muted);
    font-size: .9rem;
    margin-top: .4rem;
}

/* ====== أقسام عامة ====== */
.section {
    padding-block: 5.5rem;
}

.section-eyebrow {
    color: var(--color-gold-light);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: .8rem;
    text-transform: uppercase;
    margin-bottom: .6rem;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: .75rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    max-width: 640px;
}

.section-header {
    margin-bottom: 3rem;
}

/* ====== عن الشركة ====== */
.about-figure {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
}

.about-figure .badge-available {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(62, 207, 142, 0.1);
    color: var(--color-success);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.about-figure .badge-available::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

.value-pill {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

.value-pill:first-of-type {
    border-top: none;
}

.value-pill .icon-chip {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-pill .icon-chip .icon {
    width: 20px;
    height: 20px;
}

.value-pill h6 {
    margin-bottom: .2rem;
    font-size: 1rem;
}

.value-pill p {
    color: var(--color-text-muted);
    font-size: .9rem;
    margin: 0;
}

/* ====== بطاقات الخدمات ====== */
.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    height: 100%;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold-dim);
    box-shadow: var(--shadow-card);
}

.service-card .service-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(212,175,55,0.18), rgba(212,175,55,0.04));
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-card .service-icon .icon {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: .6rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

.service-card .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.service-card .service-features li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .87rem;
    color: var(--color-text-muted);
}

.service-card .service-features .icon {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: .15rem;
}

.service-card .service-badge {
    position: absolute;
    top: -10px;
    inset-inline-end: 1.5rem;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg);
    font-size: .72rem;
    font-weight: 800;
    padding: .3rem .9rem;
    border-radius: 999px;
    box-shadow: var(--shadow-gold-glow);
}

.service-card .service-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--color-gold-light);
    font-size: .9rem;
}

.service-card .service-cta .icon {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.service-card:hover .service-cta .icon {
    transform: translateX(-4px);
}

/* ====== الباقات (بطاقات عضوية) ====== */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: .35rem;
    gap: .25rem;
}

.pricing-toggle .toggle-option {
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 700;
    padding: .55rem 1.5rem;
    border-radius: 999px;
    font-size: .9rem;
    transition: all .25s ease;
    cursor: pointer;
    position: relative;
}

.pricing-toggle .toggle-option.active {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg);
}

.pricing-toggle .save-chip {
    font-size: .68rem;
    background: rgba(62, 207, 142, 0.15);
    color: var(--color-success);
    padding: .12rem .5rem;
    border-radius: 999px;
    margin-inline-start: .4rem;
    font-weight: 800;
}

.pricing-toggle .toggle-option.active .save-chip {
    background: rgba(10,10,15,0.15);
    color: var(--color-bg);
}

/* بطاقة الباقة - تصميم بطاقة عضوية معدنية */
.plan-card {
    background: linear-gradient(165deg, var(--color-bg-card), var(--color-bg-elevated));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: transform .3s ease, border-color .3s ease;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-6px);
}

.plan-card.featured {
    border-color: var(--color-gold);
    background: linear-gradient(165deg, #1c1a12, var(--color-bg-elevated));
    box-shadow: var(--shadow-gold-glow);
}

.plan-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(212,175,55,0.04) 0 2px, transparent 2px 14px);
    pointer-events: none;
}

.plan-card .plan-badge {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: -2px;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg);
    font-size: .72rem;
    font-weight: 800;
    padding: .35rem 1.2rem .35rem 1rem;
    border-radius: 999px 0 0 999px;
}

.plan-card .plan-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.plan-card .plan-tagline {
    color: var(--color-text-muted);
    font-size: .88rem;
    margin-bottom: 1.5rem;
    min-height: 2.6rem;
}

.plan-card .plan-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: .25rem;
    font-family: var(--font-display);
}

.plan-card .plan-price .amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-text);
}

.plan-card .plan-price .currency,
.plan-card .plan-price .period {
    color: var(--color-text-muted);
    font-size: .95rem;
    font-weight: 600;
}

.plan-card .plan-yearly-note {
    color: var(--color-text-dim);
    font-size: .8rem;
    margin-bottom: 1.5rem;
    min-height: 1.2rem;
}

.plan-card .plan-yearly-note .save-amount {
    color: var(--color-success);
    font-weight: 700;
}

.plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.plan-card .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .92rem;
}

.plan-card .plan-features .icon {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: .15rem;
}

.plan-card .btn {
    width: 100%;
    text-align: center;
}

/* ====== التواصل ====== */
.contact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

.contact-info-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.contact-info-row .icon-chip {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-row .icon-chip .icon {
    width: 21px;
    height: 21px;
}

.contact-info-row .info-label {
    color: var(--color-text-dim);
    font-size: .8rem;
    margin-bottom: .15rem;
}

.contact-info-row .info-value {
    font-weight: 700;
    color: var(--color-text);
}

.form-control,
.form-select {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background: var(--color-bg-elevated);
    border-color: var(--color-gold-dim);
    color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.form-control::placeholder {
    color: var(--color-text-dim);
}

.form-label {
    color: var(--color-text-muted);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

/* ====== Footer ====== */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding-block: 3rem;
    background: var(--color-bg-elevated);
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: .75rem;
}

.site-footer p {
    color: var(--color-text-dim);
    font-size: .9rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all .2s ease;
}

.social-link .icon {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--color-gold-light);
    border-color: var(--color-gold-dim);
}

/* ====== زر واتساب العائم ====== */
.float-whatsapp {
    position: fixed;
    bottom: 1.75rem;
    inset-inline-start: 1.75rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55);
    z-index: 999;
    transition: transform .2s ease;
}

.float-whatsapp .icon {
    width: 28px;
    height: 28px;
}

.float-whatsapp:hover {
    transform: scale(1.08);
    color: #fff;
}

/* ====== أيقونات عامة ====== */
.icon {
    width: 22px;
    height: 22px;
}

/* ====== استجابة الموبايل ====== */
@media (max-width: 991.98px) {
    .receipt-card {
        margin-inline-start: 0;
        margin-top: 2.5rem;
        max-width: 100%;
    }
    .hero {
        padding-top: 6.5rem;
    }
    .section {
        padding-block: 3.5rem;
    }
}

/* ====== حركة ظهور بسيطة ====== */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        animation: fadeInUp .6s ease both;
    }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(16px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ====== التركيز للوصولية ====== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}
