/* Explain: Styles for UI components including buttons, cards, chat bubbles, and utility elements. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-2);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 0.9rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid var(--primary-color);
}

.btn-brand:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    background: var(--surface-2);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: var(--accent-color);
    color: var(--dark-color);
    border-radius: 0.9rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.num-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.quote-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
}

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

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
}

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

.faq-item summary .faq-chevron {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    flex-shrink: 0;
}

.faq-item[open] summary .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.35rem 1.35rem;
    color: var(--text-muted);
}

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

.field-label {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.input-brand {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-brand:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 127, 75, 0.12);
}

.nav-link {
    padding: 0.55rem 0.9rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--surface-2);
    color: var(--primary-color);
}

.footer-link {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease;
}

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

/* Fixed Saudi Riyal prices: plain "amount ريال" text, kept that way by js/sar-prices.js
   so automatic currency conversion can never switch them to another symbol. */
.riyal-amount {
    display: inline-block;
    white-space: nowrap;
    unicode-bidi: isolate;
}

/* أزرار التواصل السريع العائمة (مساعد أيسر الذكي، واتساب، اتصال) */
.floating-actions {
    position: fixed;
    inset-block-end: 1.25rem;
    inset-inline-end: 1rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.floating-actions__item {
    position: relative;
    display: flex;
    align-items: center;
}

.floating-actions__label {
    position: absolute;
    inset-inline-end: 100%;
    margin-inline-end: 0.7rem;
    white-space: nowrap;
    background: var(--dark-color);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.floating-actions__item:hover .floating-actions__label,
.floating-actions__item:focus-within .floating-actions__label {
    opacity: 1;
}

.fab-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, background 0.25s ease;
}

.fab-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.fab-btn--primary {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color) 55%, var(--dark-color));
    box-shadow: 0 16px 32px -14px rgba(26, 127, 75, 0.8);
}

.fab-btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: fab-pulse 2.6s ease-out infinite;
}

.fab-btn--primary::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 60%);
    pointer-events: none;
}

@keyframes fab-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 127, 75, 0.45);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(26, 127, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 127, 75, 0);
    }
}

.fab-btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color) 60%, var(--primary-hover));
    box-shadow: 0 18px 36px -12px rgba(26, 127, 75, 0.9);
}

@media (prefers-reduced-motion: reduce) {
    .fab-btn--primary::before {
        animation: none;
    }
}

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

.fab-btn--whatsapp:hover {
    background: var(--whatsapp-hover);
}

.fab-btn--call {
    background: var(--call-color);
}

.fab-btn--call:hover {
    background: var(--call-hover);
}

/* فقاعات محادثة مساعد أيسر الذكي */
.assistant-msg {
    max-width: 85%;
    border-radius: 1rem;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    line-height: 1.8;
    word-break: break-word;
}

.assistant-msg--bot {
    align-self: flex-start;
    background: var(--surface-color);
    color: var(--text-color);
    border-start-start-radius: 0.3rem;
}

.assistant-msg--user {
    align-self: flex-end;
    background: var(--primary-color);
    color: #fff;
    border-start-end-radius: 0.3rem;
}

.assistant-msg--loading {
    color: var(--text-muted);
    font-style: italic;
}

.assistant-chip {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.assistant-chip:hover {
    border-color: var(--primary-color);
    background: var(--surface-2);
}

@media (max-width: 639px) {
    .floating-actions {
        inset-block-end: 1rem;
        inset-inline-end: 0.75rem;
    }
    .floating-actions__label {
        display: none;
    }
}

/* شريط الخدمات المتحرك: توحيد ارتفاع جميع البطاقات مهما اختلف طول العنوان أو الوصف.
   مكتوبة هنا (خارج طبقات الأدوات) حتى تتغلّب على الأنماط الافتراضية للشريط وتضمن ارتفاعاً متساوياً. */
.services-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.services-swiper .swiper-slide > article {
    flex: 1 1 auto;
    width: 100%;
}

/* شريط الخدمات المتحرك: مؤشرات التنقل النقطية أسفل الشريط */
.services-pagination {
    position: static !important;
    display: flex !important;
    width: auto !important;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.services-bullet {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--border-color);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.services-bullet-active {
    width: 1.7rem;
    background: var(--primary-color);
}

@media print {
    .floating-actions {
        display: none;
    }
}