/* Explain: Styling for reusable components like cards, buttons, and navigation elements. */
/* ============================================================
   مكوّنات واجهة "مقرك" — هوية الأحمر القرمزي والأبيض فقط
   ============================================================ */

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.5rem 1.05rem;
}

.section-kicker.solid {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    color: var(--white-color);
}

.btn {
    font-weight: 800;
}

.surface-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--white-color);
    box-shadow: var(--shadow-card);
}

.media-frame {
    position: relative;
    overflow: hidden;
    border: 6px solid var(--white-color);
    border-radius: 2.25rem;
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.icon-badge {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--primary-line);
    border-radius: 1.1rem;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 1.35rem;
    transition: background 260ms ease, color 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.icon-dot {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(200, 16, 46, 0.26);
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background: var(--white-color);
    color: var(--secondary-color);
    font-weight: 800;
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 24px rgba(84, 6, 18, 0.06);
}

/* ===== التنقل ===== */
.nav-link {
    position: relative;
    color: var(--secondary-color);
    font-size: 0.98rem;
    font-weight: 800;
    padding: 0.55rem 0.15rem;
    margin-inline: 0.85rem;
    transition: color 200ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset-inline: 0.15rem;
    inset-block-end: 0.1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 240ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link-active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link-active::after {
    transform: scaleX(1);
}

.mobile-menu-panel {
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--white-color);
    box-shadow: var(--shadow-card);
    padding: 0.5rem;
}

.mobile-menu-panel .nav-link {
    margin-inline: 0;
    padding: 0.8rem 1rem;
    border-radius: 0.9rem;
}

.mobile-menu-panel .nav-link::after {
    display: none;
}

.mobile-menu-panel .nav-link:hover,
.mobile-menu-panel .nav-link-active {
    background: var(--primary-soft);
}

/* ===== بطاقات الخدمات والخطوات ===== */
.service-card,
.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--white-color);
    box-shadow: var(--shadow-card);
    padding: 2rem 1.7rem;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset-block-end: -3.5rem;
    inset-inline-end: -3.5rem;
    width: 9rem;
    height: 9rem;
    border-radius: 999px;
    background: var(--primary-tint);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.service-card:hover,
.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-bold);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover .icon-badge {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid var(--primary-line);
    border-radius: 1.1rem;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: background 260ms ease, color 260ms ease, transform 260ms ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.service-card-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #FFFFFF 0%, #FDF2F4 100%);
    box-shadow: var(--shadow-card);
    padding: 2rem 1.7rem;
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.service-card-cta:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-bold);
}

.step-number {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
}

.why-item {
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--white-color);
    padding: 1.35rem;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.why-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-line);
    box-shadow: 0 16px 34px rgba(84, 6, 18, 0.08);
}

/* ===== شريط الأرقام ===== */
.stats-bar {
    border-block: 1px solid var(--border-color);
    background: var(--gradient-soft);
    padding-block: clamp(2.75rem, 5vw, 3.75rem);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
    padding: 1rem 0.75rem;
    text-align: center;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 0.35rem;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: var(--white-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.1);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ===== الأسئلة الشائعة ===== */
.faq-item {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--white-color);
    box-shadow: 0 8px 26px rgba(84, 6, 18, 0.05);
    transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.faq-item[open] {
    border-color: var(--primary-line);
    background: #FFFDFD;
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--secondary-color);
    transition: color 220ms ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    color: var(--primary-color);
}

.faq-index {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 900;
}

.faq-chevron {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.1rem;
    height: 2.1rem;
    margin-inline-start: auto;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: var(--white-color);
    color: var(--primary-color);
    font-size: 0.85rem;
    transition: transform 240ms ease, background 240ms ease, color 240ms ease, border-color 240ms ease;
}

.faq-item[open] .faq-chevron {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white-color);
    transform: rotate(180deg);
}

.faq-answer {
    padding-block: 0 1.35rem;
    padding-inline: 4.15rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.95;
}

/* ===== الشراكات ===== */
.partner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--white-color);
    box-shadow: 0 10px 30px rgba(84, 6, 18, 0.06);
    padding: 1.6rem 1.35rem;
    text-align: center;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.partner-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-bold);
}

.partner-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 7.5rem;
    border-radius: 1rem;
    background: var(--white-color);
    padding: 0.75rem;
}

.partner-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-card-link {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

/* ===== معرض الصور المتقلّب ===== */
.gallery-slide {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background: var(--surface-strong);
    box-shadow: var(--shadow-card);
}

.gallery-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 700ms ease;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    padding: 2.5rem 1.4rem 1.25rem;
    color: var(--white-color);
    background: linear-gradient(to top, rgba(84, 6, 18, 0.88), rgba(84, 6, 18, 0));
}

.gallery-prev,
.gallery-next {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--white-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.gallery-prev.swiper-button-disabled,
.gallery-next.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 2rem;
}

.gallery-pagination .swiper-pagination-bullet {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--primary-color);
    opacity: 0.28;
    transition: width 240ms ease, opacity 240ms ease;
}

.gallery-pagination .swiper-pagination-bullet-active {
    width: 1.8rem;
    opacity: 1;
}

/* ===== النماذج ===== */
.contact-input {
    min-height: 3.25rem;
    border-color: var(--border-color);
    background: var(--white-color);
}

.contact-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-tint);
    outline: none;
}

.form-status {
    border-radius: 1rem;
    font-weight: 700;
    padding: 0.9rem 1rem;
}

.form-status.success {
    background: rgba(21, 128, 61, 0.1);
    color: var(--success-color);
}

.form-status.error {
    background: rgba(185, 28, 28, 0.1);
    color: var(--error-color);
}

/* ===== زر واتساب العائم ===== */
.whatsapp-float {
    position: fixed;
    inset-block-end: 1.25rem;
    inset-inline-end: 1.25rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.5rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    background: var(--gradient-accent);
    color: var(--white-color);
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(200, 16, 46, 0.35);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(200, 16, 46, 0.45);
}

.whatsapp-float i {
    font-size: 1.6rem;
}

.whatsapp-float-label {
    display: none;
}

@media (min-width: 640px) {
    .whatsapp-float-label {
        display: inline;
    }
}

/* ===== روابط الواتساب المباشرة (كل خدمة تفتح المحادثة) ===== */
.wa-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.wa-link:focus-visible {
    outline: 3px solid var(--primary-line);
    outline-offset: 4px;
    border-radius: 1.25rem;
}

.wa-link:hover .icon-badge,
.wa-link:hover .service-icon {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white-color);
}

.wa-link .stat-icon,
.wa-link .step-number {
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.wa-link:hover .stat-icon,
.wa-link:hover .step-number {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(200, 16, 46, 0.18);
}

.faq-ask {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--primary-line);
    color: var(--primary-color);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 220ms ease;
}

.faq-ask:hover {
    border-bottom-color: var(--primary-color);
}