/* JU Cars - Eid PPF Landing Page Styles
 * Self-contained: no external font / CDN dependencies.
 */

/* === Local Tajawal font === */
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/tajawal-400.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/tajawal-500.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/tajawal-700.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/tajawal-800.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('fonts/tajawal-900.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Tajawal', Tahoma, Arial, sans-serif;
    direction: rtl;
    color: #e8e8f5;
    background: #0a0a14;
    line-height: 1.7;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === Hero === */
.hero {
    position: relative;
    padding: 60px 0 50px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(245,201,122,.12), transparent 55%),
        radial-gradient(ellipse at 20% 70%, rgba(74,124,247,.12), transparent 55%),
        radial-gradient(ellipse at 80% 75%, rgba(236,72,153,.08), transparent 50%),
        #0a0a14;
}
.moon { position: absolute; font-size: 70px; color: #f5c97a; opacity: .08; line-height: 1; }
.m1 { top: 8%; right: 6%; }
.m2 { bottom: 8%; left: 5%; }
.logo {
    width: 140px;
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 25px rgba(74,124,247,.35)) drop-shadow(0 0 40px rgba(236,72,153,.2));
}
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px; border-radius: 999px;
    background: rgba(245,201,122,.08); border: 1px solid rgba(245,201,122,.3);
    color: #f5c97a; font-size: 14px; font-weight: 700; margin-bottom: 18px;
}
h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 900; line-height: 1.3; color: #fff; margin-bottom: 14px; }
.g1 {
    background: linear-gradient(135deg, #4a7cf7, #8b5cf6 55%, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.g2 {
    background: linear-gradient(135deg, #f5d27a, #e0a953 50%, #b97f2f);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sub { font-size: clamp(15px, 2.5vw, 19px); color: #9999b8; max-width: 640px; margin: 0 auto 24px; }
.price {
    display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #12121f, #161628);
    border: 1px solid rgba(245,201,122,.25);
    border-radius: 24px; padding: 22px 40px; margin-bottom: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.price small { font-size: 12px; color: #f5c97a; font-weight: 700; letter-spacing: 2px; }
.price b {
    font-size: clamp(36px, 7vw, 64px); font-weight: 900;
    background: linear-gradient(135deg, #f5d27a, #e0a953 50%, #b97f2f);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.price b i { font-size: .4em; font-weight: 500; color: #9999b8; -webkit-text-fill-color: #9999b8; margin-right: 8px; font-style: normal; }
.price span { font-size: 14px; color: #9999b8; }
.stats { display: flex; justify-content: center; gap: clamp(20px, 4vw, 50px); flex-wrap: wrap; margin-top: 18px; }
.stats div { display: flex; flex-direction: column; align-items: center; }
.stats b { font-size: 18px; font-weight: 800; color: #f5c97a; }
.stats span { font-size: 12px; color: #9999b8; }

/* === Sections === */
section { padding: 55px 0; position: relative; }
section + section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #f5c97a, transparent); opacity: .4;
}
.tag {
    display: inline-block; padding: 5px 16px; border-radius: 999px;
    background: rgba(245,201,122,.1); border: 1px solid rgba(245,201,122,.3);
    color: #f5c97a; font-size: 12px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px;
}
h2 {
    font-size: clamp(24px, 4vw, 40px); font-weight: 900; text-align: center;
    background: linear-gradient(135deg, #4a7cf7, #8b5cf6 55%, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 8px; line-height: 1.3;
}
.subh { text-align: center; color: #9999b8; font-size: 16px; margin-bottom: 14px; }
.line {
    width: 70px; height: 3px;
    background: linear-gradient(135deg, #f5d27a, #e0a953, #b97f2f);
    border-radius: 2px; margin: 10px auto 24px;
    box-shadow: 0 0 15px rgba(245,201,122,.4);
}

/* === Gifts === */
.gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; text-align: center; margin-top: 18px; }
.gift {
    position: relative;
    background: linear-gradient(180deg, #12121f, #161628);
    border: 3px solid #1e1e35; border-radius: 18px;
    padding: 28px 16px 24px; cursor: pointer;
    transition: border-color .25s, box-shadow .25s, transform .2s, background .25s;
    display: flex; flex-direction: column; align-items: center;
    user-select: none; outline: none;
}
.gift:hover { border-color: rgba(245,201,122,.5); transform: translateY(-3px); }
.gift:focus-visible { border-color: #f5c97a; box-shadow: 0 0 0 3px rgba(245,201,122,.4); }
.gift.selected {
    border-color: #f5c97a;
    background: linear-gradient(180deg, #1a1612, #1e1a14);
    box-shadow: 0 0 0 3px rgba(245,201,122,.2), 0 12px 30px rgba(245,201,122,.25);
    transform: translateY(-4px);
}
.gift.selected .check { display: flex; }
.check {
    display: none; position: absolute; top: 12px; left: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #f5d27a, #e0a953);
    color: #1a1408; font-size: 18px; font-weight: 900;
    align-items: center; justify-content: center;
    box-shadow: 0 0 14px rgba(245,201,122,.6); line-height: 1;
}
.free {
    position: absolute; top: -12px; right: 50%; transform: translateX(50%);
    padding: 4px 16px; border-radius: 8px;
    background: linear-gradient(135deg, #f5d27a, #e0a953 50%, #b97f2f);
    color: #1a1408; font-size: 11px; font-weight: 800; letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(245,201,122,.4);
}
.gico {
    width: 78px; height: 78px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,201,122,.18), transparent 70%);
    display: flex; align-items: center; justify-content: center;
    margin: 14px 0 14px; font-size: 40px; line-height: 1;
    border: 2px solid rgba(245,201,122,.18);
}
.gname { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.gdesc { font-size: 12.5px; color: #9999b8; line-height: 1.55; }
.gnum {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #4a7cf7, #8b5cf6 55%, #ec4899);
    color: #fff; font-size: 16px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 14px rgba(74,124,247,.45); line-height: 1;
}

/* === Features === */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.feat {
    background: linear-gradient(180deg, #12121f, #161628);
    border: 1px solid #1e1e35; border-radius: 18px;
    padding: 24px 18px; text-align: center;
    transition: transform .2s, border-color .3s;
}
.feat:hover { border-color: rgba(74,124,247,.3); transform: translateY(-3px); }
.fico {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(74,124,247,.1); border: 1px solid rgba(74,124,247,.2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 24px;
}
.feat b { display: block; font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.feat span { font-size: 13px; color: #9999b8; line-height: 1.6; }

/* === Steps === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 900px; margin: 30px auto 0; }
.step {
    background: #12121f; border: 1px solid #1e1e35; border-radius: 18px;
    padding: 30px 20px 22px; text-align: center; position: relative;
}
.snum {
    position: absolute; top: -18px; right: 50%; transform: translateX(50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #4a7cf7, #8b5cf6 55%, #ec4899);
    color: #fff; font-weight: 900; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 18px rgba(74,124,247,.4);
}
.step b { display: block; font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.step span { font-size: 13px; color: #9999b8; line-height: 1.6; }

/* === Order card === */
.order {
    max-width: 680px; margin: 0 auto;
    background: linear-gradient(180deg, #12121f, #161628);
    border: 2px solid rgba(245,201,122,.2);
    border-radius: 24px; padding: 30px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.order h3 { font-size: 22px; font-weight: 800; color: #fff; text-align: center; margin-bottom: 6px; }
.order .osub { text-align: center; color: #9999b8; font-size: 14px; margin-bottom: 22px; }

/* Optional name input */
.name-input {
    width: 100%; padding: 12px 16px; border-radius: 10px;
    background: rgba(10,10,20,.5); border: 1px solid rgba(74,124,247,.25);
    color: #fff; font-size: 15px; font-family: inherit; direction: rtl;
    margin-bottom: 18px;
    transition: border-color .2s, box-shadow .2s;
}
.name-input:focus { outline: none; border-color: #f5c97a; box-shadow: 0 0 0 3px rgba(245,201,122,.2); }
.name-input::placeholder { color: #6a6a8a; }

.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(30,30,53,.7); }
.row:last-of-type { border-bottom: none; }
.row em { color: #9999b8; font-size: 13px; font-style: normal; flex-shrink: 0; }
.row strong { color: #fff; font-size: 13px; font-weight: 700; text-align: left; }
#selectedBox {
    display: none; margin: 14px 0; padding: 14px; border-radius: 12px;
    background: rgba(245,201,122,.08); border: 1px dashed rgba(245,201,122,.4);
    color: #f5c97a; font-size: 13px; font-weight: 700; text-align: center;
}
#selectedBox.show { display: block; }
.total {
    margin-top: 18px; padding-top: 18px;
    border-top: 2px dashed rgba(245,201,122,.2);
    display: flex; justify-content: space-between; align-items: center;
}
.total em { font-size: 17px; font-weight: 800; color: #fff; font-style: normal; }
.total b {
    font-size: 30px; font-weight: 900;
    background: linear-gradient(135deg, #f5d27a, #e0a953 50%, #b97f2f);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* === WhatsApp button === */
.wa {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 18px; border-radius: 14px;
    background: linear-gradient(135deg, #25d366, #1eaf52);
    color: #fff !important; font-size: 18px; font-weight: 800;
    margin-top: 24px;
    box-shadow: 0 8px 28px rgba(37,211,102,.3);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none !important;
    border: none; cursor: pointer; font-family: inherit;
}
.wa:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(37,211,102,.5); color: #fff !important; }
.wa span { font-size: 24px; line-height: 1; }

.phone-box {
    margin-top: 14px; padding: 14px;
    background: rgba(245,201,122,.06);
    border: 1px dashed rgba(245,201,122,.35);
    border-radius: 12px; text-align: center;
}
.phone-box .phone-label { font-size: 12px; color: #9999b8; margin-bottom: 6px; }
.phone-box .phone-num {
    display: inline-block; font-size: 22px; font-weight: 900;
    color: #f5c97a !important; direction: ltr; letter-spacing: 2px;
    font-family: 'Tajawal', Tahoma, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    text-decoration: none !important;
}
.phone-box .phone-num:hover { color: #f5d27a !important; }
.note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: #9999b8; font-size: 12px; }

/* === Tags === */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 30px 20px 10px; background: #0d0d1a; }
.tags span {
    padding: 5px 14px; border-radius: 999px;
    background: rgba(74,124,247,.08); border: 1px solid rgba(74,124,247,.2);
    color: #4a7cf7; font-size: 13px; font-weight: 600;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* === Mobile === */
@media (max-width: 600px) {
    .row { flex-direction: column; gap: 4px; }
    .row strong { text-align: right; }
    .moon { font-size: 45px; }
}
