/* ============================================================
   AZM OFFERS — MODERN, EYE-CATCHING DESIGN (RTL / Arabic)
   Aurora hero · glass search · animated stats · gradient cards
   ============================================================ */

:root {
    --azm-primary: #0e7fa3;
    --azm-primary-dark: #075b78;
    --azm-accent: #2ba6b8;
    --azm-cyan: #22d3ee;
    --azm-violet: #7c5cff;
    --azm-pink: #ff6ba9;
    --azm-soft: #e6f6fa;
    --azm-bg: #eef4f8;
    --azm-surface: #ffffff;
    --azm-ink: #0c2530;
    --azm-text: #17323f;
    --azm-muted: #5f7684;
    --azm-border: #e3edf3;

    --azm-grad: linear-gradient(120deg, #0e7fa3 0%, #2ba6b8 45%, #22d3ee 100%);
    --azm-grad-warm: linear-gradient(120deg, #7c5cff, #22d3ee 60%, #2ba6b8);
    --azm-shadow: 0 24px 50px -22px rgba(7, 91, 120, .40);
    --azm-shadow-sm: 0 10px 24px -14px rgba(7, 91, 120, .45);
    --azm-radius: 22px;
    --azm-radius-sm: 14px;

    --bs-body-font-family: "Cairo", system-ui, sans-serif;
    --bs-body-color: var(--azm-text);
    --bs-primary: var(--azm-primary);
    --bs-primary-rgb: 14, 127, 163;
}

* { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(1100px 480px at 100% -8%, rgba(43, 166, 184, .12), transparent 60%),
        radial-gradient(900px 460px at -5% 4%, rgba(124, 92, 255, .10), transparent 55%),
        var(--azm-bg);
    font-family: var(--bs-body-font-family);
    color: var(--azm-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- Navbar ---------- */
.top-nav.navbar {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}

.top-nav.navbar.scrolled {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--azm-border);
    box-shadow: 0 10px 30px -18px rgba(7, 91, 120, .5);
}

.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

#menu { gap: 4px; }

#menu .nav-link {
    color: var(--azm-primary-dark);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    position: relative;
    transition: background .2s ease, color .2s ease;
}

#menu .nav-link:hover,
#menu .nav-link:focus {
    background: var(--azm-soft);
    color: var(--azm-primary-dark);
}

.navbar-toggler { border-color: var(--azm-border); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(14, 127, 163, .25); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #06384a 0%, #0e7fa3 50%, #147d94 100%);
    color: #fff;
    padding: 84px 0 130px;
    margin-bottom: 24px;
    overflow: hidden;
    isolation: isolate;
}

.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    filter: blur(8px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: .55;
    mix-blend-mode: screen;
    filter: blur(46px);
    animation: float 16s ease-in-out infinite;
}

.blob-1 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--azm-cyan), transparent 70%);
    top: -120px; inset-inline-start: -80px;
}

.blob-2 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, var(--azm-violet), transparent 70%);
    bottom: -180px; inset-inline-end: -60px;
    animation-delay: -5s;
}

.blob-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, var(--azm-pink), transparent 70%);
    top: 30%; inset-inline-start: 55%;
    animation-delay: -9s;
    opacity: .35;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -40px) scale(1.08); }
    66%      { transform: translate(-25px, 25px) scale(.95); }
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}

.eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #6ef2c8;
    box-shadow: 0 0 0 0 rgba(110, 242, 200, .7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(110, 242, 200, .7); }
    70%  { box-shadow: 0 0 0 10px rgba(110, 242, 200, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 242, 200, 0); }
}

.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.5px;
    margin-bottom: 16px;
}

.grad-text {
    background: linear-gradient(100deg, #a7f3ff, #d8ccff 55%, #ffd6ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.12rem;
    opacity: .92;
    max-width: 640px;
    margin: 0 auto 34px;
    line-height: 1.9;
}

/* ---------- Hero search (glass) ---------- */
.hero-search {
    max-width: 620px;
    margin: 0 auto;
}

.search-field { position: relative; }

.search-field .search-icon {
    position: absolute;
    inset-inline-start: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--azm-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    border: none;
    background: rgba(255, 255, 255, .96);
    border-radius: 999px;
    padding: 18px 56px;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--azm-text);
    box-shadow: 0 20px 45px -18px rgba(4, 40, 55, .7);
    transition: box-shadow .25s ease, transform .25s ease;
}

.search-input::placeholder { color: var(--azm-muted); }

.search-input:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow:
        0 26px 55px -18px rgba(4, 40, 55, .8),
        0 0 0 4px rgba(34, 211, 238, .45);
}

.search-clear {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--azm-soft);
    color: var(--azm-primary-dark);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background .2s ease, transform .2s ease;
}

.search-clear:hover { background: #cdeef4; transform: translateY(-50%) scale(1.08); }
.search-clear.is-visible { display: inline-flex; }

/* ---------- Hero stats ---------- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat { text-align: center; min-width: 96px; }

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.stat-label {
    font-size: .88rem;
    opacity: .82;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, .28);
}

/* ---------- Hero wave ---------- */
.hero-wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 78px;
    display: block;
}

.hero-wave path { fill: var(--azm-bg); }

/* ---------- Section head ---------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 26px;
}

.section-title {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--azm-ink);
    margin: 0;
    position: relative;
    padding-inline-start: 16px;
}

.section-title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 6px; bottom: 6px;
    width: 6px;
    border-radius: 6px;
    background: var(--azm-grad);
}

.results-count {
    color: var(--azm-muted);
    font-size: .95rem;
    font-weight: 600;
    margin: 8px 0 0;
    padding-inline-start: 16px;
}

.results-count strong { color: var(--azm-primary-dark); }

/* ---------- Store cards ---------- */
.store-card-col { animation: cardIn .45s ease both; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.store-card {
    position: relative;
    background: var(--azm-surface);
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* gradient glow border on hover */
.store-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--azm-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 2;
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--azm-shadow);
}

.store-card:hover::before { opacity: 1; }

.logo-box {
    position: relative;
    height: 188px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4f8;
    border-bottom: 1px solid var(--azm-border);
    padding: 22px;
    overflow: hidden;
}

/* Blurred, zoomed copy of the same logo fills the empty space with the
   logo's OWN colors — works for opaque, non-transparent logos of any
   aspect ratio (no white bars, no cropping the real logo). */
.logo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.35);
    filter: blur(28px) saturate(1.35);
    opacity: .55;
    z-index: 0;
    pointer-events: none;
}

/* Soft light veil so the sharp logo always separates from its backdrop. */
.logo-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .55));
    z-index: 1;
    pointer-events: none;
}

/* The sharp logo, contained and centered. Rounded + shadowed so opaque
   rectangular logos read as a neat floating tile over the blurred fill. */
.logo-img {
    position: relative;
    z-index: 2;
    max-width: 80%;
    max-height: 116px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 26px -12px rgba(4, 40, 55, .55);
    transition: transform .35s ease;
}

.store-card:hover .logo-img { transform: scale(1.05); }

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.card-title {
    color: var(--azm-ink);
    font-weight: 700;
    font-size: 1.18rem;
    margin: 0;
}

/* Short description: up to 3 lines of small muted text, truncated. */
.card-desc {
    color: var(--azm-muted);
    font-size: .9rem;
    line-height: 1.65;
    margin: -2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info {
    color: var(--azm-muted);
    font-size: .95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info .btn { border-radius: var(--azm-radius-sm); font-weight: 600; }

.btn-outline-primary { color: var(--azm-primary); border-color: var(--azm-primary); }
.btn-outline-primary:hover { background: var(--azm-primary); border-color: var(--azm-primary); }

.phone-btn {
    width: 100%;
    border: none;
    border-radius: var(--azm-radius-sm);
    font-weight: 700;
    padding: 12px;
    margin-top: auto;
    color: #fff;
    background: var(--azm-grad);
    background-size: 160% 100%;
    background-position: 0% 0%;
    box-shadow: 0 12px 22px -12px rgba(14, 127, 163, .8);
    transition: background-position .4s ease, transform .2s ease, box-shadow .2s ease;
}

.phone-btn:hover,
.phone-btn:focus {
    color: #fff;
    background-position: 100% 0%;
    transform: translateY(-1px);
    box-shadow: 0 16px 26px -12px rgba(14, 127, 163, .9);
}

/* ---------- Skeleton loading ---------- */
.skeleton-card {
    background: var(--azm-surface);
    border: 1px solid var(--azm-border);
    border-radius: var(--azm-radius);
    overflow: hidden;
    height: 100%;
}

.sk {
    position: relative;
    overflow: hidden;
    background: #e9f1f5;
}

.sk::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
    animation: shimmer 1.3s infinite;
}

/* RTL: sweep the other way for natural feel */
html[dir="rtl"] .sk::after { animation-name: shimmer-rtl; }

@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes shimmer-rtl { 100% { transform: translateX(100%); } }

.sk-logo { height: 188px; }
.sk-line { height: 14px; border-radius: 7px; margin: 20px 20px 0; }
.sk-line.w-60 { width: 60%; }
.sk-line.w-40 { width: 40%; }
.sk-btn { height: 44px; border-radius: 14px; margin: 20px; }

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--azm-muted);
}

.empty-state .emoji { font-size: 3.2rem; display: block; margin-bottom: 14px; }
.empty-state h3 { color: var(--azm-text); font-weight: 700; font-size: 1.35rem; margin-bottom: 8px; }

.btn-hero {
    border: none;
    color: #fff;
    background: var(--azm-grad);
    font-weight: 700;
    border-radius: 999px;
    padding: 11px 26px;
    box-shadow: var(--azm-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-hero:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--azm-shadow); }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    width: 50px; height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--azm-grad);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: var(--azm-shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    z-index: 1040;
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- Footer ---------- */
#site-footer {
    position: relative;
    background:
        radial-gradient(700px 300px at 88% 0%, rgba(43, 166, 184, .22), transparent 60%),
        radial-gradient(600px 280px at 8% 100%, rgba(124, 92, 255, .18), transparent 60%),
        #08202c;
    color: #cfe0ea;
    margin-top: 60px;
}

.footer-title { color: #fff; font-weight: 800; margin-bottom: 14px; }
.footer-subtitle { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: 1rem; }
.footer-text { margin-bottom: 14px; color: #b8cad6; line-height: 1.85; }

.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; }

#site-footer a { color: #8fd4f5; text-decoration: none; transition: color .2s ease; }
#site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }

.footer-social a {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
}

.footer-social a:hover { background: rgba(34, 211, 238, .22); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .92rem;
    color: #9fb4c1;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .blob, .eyebrow-dot, .sk::after, .store-card-col { animation: none !important; }
    * { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .hero { padding: 66px 0 110px; }
    .hero-stats { gap: 14px; }
    .stat-num { font-size: 1.6rem; }
    .section-title { font-size: 1.35rem; }
}

@media (max-width: 575.98px) {
    .search-input { padding: 15px 50px; font-size: 1rem; }
    .stat-divider { display: none; }
}
