/* ═══════════════════════════════════════════════════════════════
   BookSaudia — Footer Promo Section
   Desktop-only promotional cards above the main footer.
   ═══════════════════════════════════════════════════════════════ */

.bs-promo-section {
    padding: 64px 0 40px;
    background: #f4f6f8;
}

/* ─── Card base ─── */
.bs-promo-card {
    position: relative;
    height: 100%;
    min-height: 340px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.bs-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.bs-promo-card__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 40px 44px;
    gap: 24px;
    z-index: 2;
}

.bs-promo-card__text {
    flex: 1;
    min-width: 0;
}

.bs-promo-card__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.bs-promo-card__subtitle {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ─── Variant: App Download (blue gradient) ─── */
.bs-promo-card--app {
    background: linear-gradient(135deg, #1e6fd9 0%, #2d8bf0 60%, #4ea8ff 100%);
}

.bs-promo-card--app::before {
    content: "";
    position: absolute;
    top: -80px;
    right: 30%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    z-index: 1;
}

.bs-promo-card--app::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: 20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 50, 0.22) 0%, transparent 70%);
    z-index: 1;
}

/* ─── Variant: Newsletter (green gradient) ─── */
.bs-promo-card--newsletter {
    background: linear-gradient(135deg, #1e7a3f 0%, #2d9656 60%, #5cc07e 100%);
}

.bs-promo-card--newsletter::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
}

/* ─── Form ─── */
.bs-promo-form {
    margin-bottom: 18px;
}

.bs-promo-form__group {
    display: flex;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    max-width: 420px;
}

.bs-promo-form__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 14px;
    color: #1e293b;
    background: transparent;
    min-width: 0;
}

.bs-promo-form__input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.bs-promo-form__btn {
    border: none;
    background: #003b95;
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 0 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease;
    letter-spacing: 0.01em;
}

.bs-promo-form__btn:hover {
    background: #003b95;
}

/* ─── More ways / Store badges ─── */
.bs-promo-card__more {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 12px;
}

.bs-store-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bs-store-badge {
    display: block;
    transition: transform .2s ease;
}

.bs-store-badge:hover {
    transform: scale(1.04);
}

.bs-store-badge img {
    height: 40px;
    display: block;
}

.bs-qr-badge {
    width: 84px;
    height: 84px;
    padding: 6px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-left: 4px;
}

.bs-qr-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════════
   Device Mockup (App Card)
   Pure CSS mockup — phone + laptop composition
   ═══════════════════════════════════════════════════════════════ */
.bs-promo-card__mockup {
    position: relative;
    flex-shrink: 0;
    width: 340px;
    height: 280px;
}

.bs-mockup {
    position: absolute;
    inset: 0;
}

/* ─── Phone ─── */
.bs-mockup__phone {
    position: absolute;
    top: 0;
    left: 40px;
    width: 150px;
    height: 280px;
    background: #1a1a1a;
    border-radius: 22px;
    padding: 10px 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.bs-mockup__phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 14px;
    background: #1a1a1a;
    border-radius: 10px;
    z-index: 3;
}

.bs-mockup__phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    padding: 16px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bs-mockup__app-header {
    padding: 4px 0 6px;
    text-align: center;
}

.bs-mockup__logo {
    font-size: 11px;
    font-weight: 800;
    color: #1e6fd9;
    letter-spacing: -0.02em;
}

.bs-mockup__hero {
    height: 40px;
    background: linear-gradient(135deg, #e0efff, #b5d9ff);
    border-radius: 6px;
}

.bs-mockup__tabs {
    display: flex;
    gap: 4px;
    padding: 2px 0;
}

.bs-mockup__tab {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.bs-mockup__tab--active {
    background: #1e6fd9;
}

.bs-mockup__input-row {
    height: 14px;
    background: #f1f5f9;
    border-radius: 4px;
}

.bs-mockup__input-row--sm {
    width: 70%;
}

.bs-mockup__cta-btn {
    background: #f59e0b;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    padding: 6px;
    border-radius: 5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bs-mockup__offers {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.bs-mockup__offer-card {
    flex: 1;
    height: 28px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 4px;
}

/* ─── Laptop ─── */
.bs-mockup__laptop {
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    z-index: 1;
}

.bs-mockup__laptop-screen {
    width: 100%;
    height: 140px;
    background: #1a1a1a;
    border-radius: 8px 8px 2px 2px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bs-mockup__laptop-header {
    height: 10px;
    background: linear-gradient(90deg, #1e6fd9, #2d8bf0);
    border-radius: 3px;
}

.bs-mockup__laptop-hero {
    flex: 1;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bs-mockup__laptop-title {
    height: 6px;
    width: 60%;
    background: #1e6fd9;
    border-radius: 2px;
}

.bs-mockup__laptop-subtitle {
    height: 4px;
    width: 40%;
    background: rgba(30, 111, 217, 0.5);
    border-radius: 2px;
}

.bs-mockup__laptop-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    height: 22px;
}

.bs-mockup__laptop-card {
    background: #ffffff;
    border-radius: 2px;
}

.bs-mockup__laptop-base {
    width: 110%;
    height: 6px;
    background: linear-gradient(180deg, #404040, #1a1a1a);
    margin-left: -5%;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   Newsletter Illustration
   ═══════════════════════════════════════════════════════════════ */
.bs-promo-card__illustration {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    height: 220px;
}

.bs-newsletter-illus {
    position: absolute;
    inset: 0;
}

.bs-newsletter-illus__card {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.bs-newsletter-illus__card--1 {
    top: 0;
    left: 10px;
    width: 130px;
    height: 180px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.5) 100%),
        linear-gradient(135deg, #f59e0b, #fb923c 40%, #3b82f6 100%);
    transform: rotate(-6deg);
}

.bs-newsletter-illus__card--1::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fbbf24, #f59e0b);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
}

.bs-newsletter-illus__card--2 {
    bottom: 0;
    right: 0;
    width: 120px;
    height: 150px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%),
        linear-gradient(135deg, #0f766e, #14b8a6 50%, #5eead4 100%);
    transform: rotate(4deg);
}

.bs-newsletter-illus__card--2::before {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    height: 40px;
    background:
        linear-gradient(135deg, #064e3b 20%, transparent 20%),
        linear-gradient(225deg, #065f46 20%, transparent 20%),
        linear-gradient(135deg, #047857 30%, transparent 30%);
    background-size: 20px 40px, 25px 40px, 30px 40px;
    background-position: 0 100%, 20px 100%, 50px 100%;
    background-repeat: no-repeat;
}

.bs-newsletter-illus__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 5;
    border: 3px solid #fef3c7;
}

.bs-newsletter-illus__badge span {
    font-size: 18px;
    font-weight: 800;
    color: #1e7a3f;
    line-height: 1;
}

.bs-newsletter-illus__badge small {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   RTL Support (Arabic)
   ═══════════════════════════════════════════════════════════════ */
[dir="rtl"] .bs-promo-card__mockup,
[dir="rtl"] .bs-promo-card__illustration {
    transform: scaleX(-1);
}

[dir="rtl"] .bs-promo-card__mockup .bs-mockup__logo,
[dir="rtl"] .bs-promo-card__mockup .bs-mockup__cta-btn {
    transform: scaleX(-1);
}

/* ═══════════════════════════════════════════════════════════════
   Responsive tweaks — hidden below lg (992px) via d-none d-lg-block,
   but we still refine the layout between lg and xl.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
    .bs-promo-card__content {
        padding: 32px 28px;
    }

    .bs-promo-card__title {
        font-size: 22px;
    }

    .bs-promo-card__mockup {
        width: 280px;
    }

    .bs-mockup__phone {
        left: 20px;
        width: 130px;
        height: 240px;
    }

    .bs-mockup__laptop {
        width: 180px;
        top: 60px;
    }

    .bs-promo-card__illustration {
        width: 150px;
        height: 190px;
    }
}
