/* Landing page sections added in 2026: numbers, logo strip, loyalty, languages, pricing switch, lead form, FAQ, WhatsApp chat. */

.landing-section { position: relative; padding: 5rem 0; }

.landing-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.9rem; margin-bottom: 1rem;
    border-radius: 999px; font-size: 0.8rem; font-weight: 600;
    color: var(--brand-primary); background: rgba(238, 103, 24, 0.12); border: 1px solid rgba(238, 103, 24, 0.28);
}

.landing-title { color: #fff; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 1rem; }
.landing-lead { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ---------- numbers ---------- */
.landing-stats { padding: 2rem 0 1rem; position: relative; z-index: 2; }
.landing-stats__grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
    padding: 1.25rem; border-radius: var(--radius-xl);
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
@media (min-width: 768px) { .landing-stats__grid { padding: 1.5rem; } }
.landing-stat { flex: 1 1 140px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.2rem; padding: 0.5rem; }
.landing-stat i { color: var(--brand-primary); font-size: 1.1rem; margin-bottom: 0.2rem; }
.landing-stat i.fa-whatsapp { color: #25D366; }
.landing-stat strong { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.landing-stat span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- logo strip ---------- */
.landing-logos { padding: 2rem 0 1rem; }
.landing-logos__title { text-align: center; color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 1.25rem; }
.landing-logos__viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.landing-logos__track { display: flex; gap: 1rem; width: max-content; margin: 0; padding: 0.25rem 0; list-style: none; animation: landing-marquee 60s linear infinite; }
.landing-logos__viewport:hover .landing-logos__track { animation-play-state: paused; }
.landing-logos__track li a {
    display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 999px; background: var(--surface-card); border: 1px solid var(--border-subtle);
    color: #fff; white-space: nowrap; text-decoration: none; transition: border-color var(--transition), background var(--transition);
}
.landing-logos__track li a:hover { border-color: rgba(238, 103, 24, 0.5); background: rgba(238, 103, 24, 0.08); color: #fff; }
.landing-logos__track img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.landing-logos__track span { font-size: 0.85rem; font-weight: 600; }
@keyframes landing-marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .landing-logos__track { animation-name: landing-marquee-rtl; }
@keyframes landing-marquee-rtl { to { transform: translateX(50%); } }

/* ---------- loyalty ---------- */
.landing-points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.landing-points li { display: flex; gap: 1rem; align-items: flex-start; }
.landing-points h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 0.2rem; }
.landing-points p { color: var(--text-muted); margin: 0; font-size: 0.95rem; line-height: 1.6; }
.landing-points__icon {
    flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ee1823, #efc10b);
}

.loyalty-visual { position: relative; max-width: 420px; margin-inline: auto; padding: 2rem 0; }
.loyalty-card {
    position: relative; z-index: 1; padding: 1.5rem; border-radius: 1.5rem; color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(238, 103, 24, 0.18);
}
.loyalty-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-weight: 600; }
.loyalty-card__top i { color: #efc10b; }
.loyalty-card__points { font-size: 3.4rem; font-weight: 800; line-height: 1.1; margin: 0.4rem 0 0.8rem; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loyalty-card__bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.loyalty-card__bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }
.loyalty-card__next { margin-top: 0.7rem; color: var(--text-muted); font-size: 0.9rem; }
.loyalty-wheel {
    position: absolute; z-index: 2; inset-inline-end: -6%; bottom: -2%; width: 96px; height: 96px; border-radius: 50%;
    background: conic-gradient(#ee1823 0 60deg, #efc10b 60deg 120deg, #ee6718 120deg 180deg, #25D366 180deg 240deg, #7c4dff 240deg 300deg, #fff 300deg 360deg);
    border: 4px solid #0a0a0f; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); animation: landing-spin 12s linear infinite;
}
.loyalty-wheel span { position: absolute; inset: 36%; border-radius: 50%; background: #0a0a0f; }
.loyalty-chip {
    position: absolute; z-index: 2; inset-inline-start: -4%; top: 0; display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #fff;
    background: rgba(37, 211, 102, 0.9); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); animation: landing-float 5s ease-in-out infinite;
}
@keyframes landing-spin { to { transform: rotate(360deg); } }
@keyframes landing-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- languages ---------- */
.landing-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.landing-chip {
    padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
    color: #fff; background: var(--surface-card); border: 1px solid var(--border-subtle); transition: all var(--transition);
}
.landing-chip:hover { border-color: rgba(238, 103, 24, 0.5); }
.landing-chip.is-active { background: var(--brand-primary); border-color: var(--brand-primary); }
.landing-chip:focus-visible, .pricing-switch__btn:focus-visible, .wa-widget button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lang-demo {
    max-width: 380px; margin-inline: auto; padding: 1.25rem; border-radius: 1.5rem; color: #fff;
    background: linear-gradient(160deg, #1b1b24, #101016); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-hover);
    transition: opacity 0.2s ease;
}
.lang-demo[dir="rtl"] { font-family: 'Tajawal', 'Cairo', 'Inter', system-ui, sans-serif; }
.lang-demo__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; font-size: 1.1rem; }
.lang-demo__logo { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #ee1823, #efc10b); }
.lang-demo__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.lang-demo__list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.lang-demo__list li > span:nth-child(2) { flex: 1; font-weight: 600; }
.lang-demo__list em { font-style: normal; font-weight: 700; color: #ffb27a; font-variant-numeric: tabular-nums; }
.lang-demo__emoji { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, 0.08); font-size: 1.2rem; }
.lang-demo__cta { width: 100%; padding: 0.75rem; border: 0; border-radius: 999px; font-weight: 700; color: #fff; background: var(--brand-primary); cursor: default; }

/* ---------- pricing ---------- */
.pricing-switch {
    display: inline-flex; margin: 0 auto 2rem; padding: 4px; border-radius: 999px;
    background: var(--surface-card); border: 1px solid var(--border-subtle); position: relative; left: 50%; transform: translateX(-50%);
}
.pricing-switch__btn { padding: 0.5rem 1.4rem; border: 0; border-radius: 999px; font-weight: 600; color: var(--text-muted); background: transparent; cursor: pointer; transition: all var(--transition); }
.pricing-switch__btn.is-active { color: #fff; background: var(--brand-primary); }
.pricing-plans-row .pricingCard { position: relative; }
.pricingCard--popular { border-color: var(--brand-primary) !important; box-shadow: 0 0 0 1px var(--brand-primary), 0 20px 50px rgba(238, 103, 24, 0.22) !important; }
/* the column is a flex container (d-flex): the hidden attribute must still win */
[data-plan-period][hidden] { display: none !important; }
.pricing-popular-badge {
    position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 1rem; border-radius: 0 0 14px 14px;
    font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--brand-gradient);
}
html[dir="rtl"] .pricing-popular-badge { transform: translateX(50%); }

/* ---------- lead form ---------- */
.landing-lead-box {
    padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.75rem;
    background: radial-gradient(circle at 0% 0%, rgba(238, 103, 24, 0.18), transparent 55%), var(--surface-card);
    border: 1px solid var(--border-subtle);
}
.lead-form label { display: block; margin-bottom: 0.35rem; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.lead-form .form-control { height: 48px; border-radius: 14px; }
.lead-form .form-control.is-invalid { border-color: #ff6b6b; box-shadow: 0 0 0 1px #ff6b6b; }
.lead-form__status { min-height: 1.4rem; margin: 0 0 0.6rem; font-size: 0.9rem; color: #ff8a8a; }
.lead-form__status.is-ok { color: #25D366; }
.lead-form__submit { display: inline-flex; align-items: center; gap: 0.6rem; }

/* ---------- FAQ ---------- */
.faq-item { border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border-subtle); margin-bottom: 0.75rem; transition: border-color var(--transition); }
.faq-item[open] { border-color: rgba(238, 103, 24, 0.45); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; position: relative; color: #fff; font-weight: 600; }
html[dir="rtl"] .faq-item summary { padding: 1.1rem 1.25rem 1.1rem 3rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; inset-inline-end: 1.25rem; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-size: 1.2rem; line-height: 1; color: var(--brand-primary); background: rgba(238, 103, 24, 0.12); transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: var(--radius-lg); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- WhatsApp chat ---------- */
.wa-widget { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 1040; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
html[dir="rtl"] .wa-widget { align-items: flex-start; }
.wa-widget__fab {
    width: 58px; height: 58px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff; background: #25D366; cursor: pointer; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    animation: whatsapp-pulse 2s ease-in-out infinite; transition: transform 0.25s ease;
}
.wa-widget__fab:hover { transform: scale(1.08); }
.wa-widget__panel {
    width: 320px; max-width: calc(100vw - 40px); border-radius: 1.25rem; overflow: hidden; color: #fff;
    background: #111b21; border: 1px solid var(--border-subtle); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transform-origin: bottom right; animation: wa-panel-in 0.2s ease;
}
.wa-widget__panel[hidden] { display: none; }
@keyframes wa-panel-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.wa-widget__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; background: #1f2c34; }
.wa-widget__head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.wa-widget__head small { color: var(--text-muted); font-size: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.wa-widget__dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25); }
.wa-widget__avatar { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 24px; background: #25D366; }
.wa-widget__close { border: 0; background: transparent; color: var(--text-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.wa-widget__body { padding: 1rem; display: grid; gap: 0.6rem; background: #0b1115; }
.wa-widget__bubble { margin: 0 0 0.25rem; padding: 0.65rem 0.85rem; border-radius: 4px 14px 14px 14px; background: #1f2c34; font-size: 0.92rem; }
html[dir="rtl"] .wa-widget__bubble { border-radius: 14px 4px 14px 14px; }
.wa-widget__action {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
    color: #25D366; border: 1px solid rgba(37, 211, 102, 0.45); text-decoration: none; transition: background var(--transition);
}
.wa-widget__action:hover { background: rgba(37, 211, 102, 0.12); color: #25D366; }
.wa-widget__foot { margin: 0; padding: 0.6rem 1rem 0.8rem; font-size: 0.75rem; color: var(--text-muted); background: #0b1115; text-align: center; }

/* ---------- below the fold: draw only when scrolled near ---------- */
.landing-faq, .landing-lead-section, #restorants, footer.footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }

@media (prefers-reduced-motion: reduce) {
    .landing-logos__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .landing-logos__track li[aria-hidden="true"] { display: none; }
    .landing-logos__viewport { -webkit-mask-image: none; mask-image: none; }
    .loyalty-wheel, .loyalty-chip, .wa-widget__fab, .wa-widget__panel { animation: none; }
}

/* ---------- sticky navbar: stays at the top while scrolling (glass once the page moves, see navbar-scrolled) ---------- */
body.landing-page .navbar-main { position: sticky; top: 0; z-index: 1030; }
body.landing-page .navbar-main.navbar-scrolled { padding-top: 0.5rem; padding-bottom: 0.5rem; }
/* anchor links (Features, Pricing, FAQ...) stop below the bar instead of under it */
html { scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
