/* =========================
   /assets/css/home.css
   ========================= */

:root{
    --ink:#003f5f;
    --ink2:rgba(0,63,95,.88);
    --glass:rgba(255,255,255,.55);
    --glass2:rgba(255,255,255,.72);
    --border:rgba(255,255,255,.72);
    --shadow:0 14px 30px rgba(0,0,0,.14);
    --radius:22px;
}

*{ box-sizing:border-box; }
html,body{
    margin:0; padding:0;
    width:100%; height:100%;
    font-family:'Cairo', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ✅ backgrounds never block clicks */
.bg-fixed,
.bg-overlay{
    pointer-events: none;
}

/* ✅ Fixed background - local file for Chrome */
.bg-fixed{
    position: fixed;
    inset: 0;
    z-index: -3;
    background-color:#e9f3f7;
    background-image: url("/assets/media/bg.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: translateZ(0);
    will-change: transform;
}

/* ✅ Blur overlay with fallback */
.bg-overlay{
    position: fixed;
    inset: 0;
    z-index: -2;
    background: rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))){
    .bg-overlay{ background: rgba(255,255,255,.28); }
}

/* ✅ Language link is in normal flow (not floating) */
.topbar{
    position: relative;
    z-index: 50;
    display:flex;
    justify-content:flex-end;
    padding: 14px 16px 6px;
}
.lang-link{
    position: relative;
    z-index: 51;
    text-decoration:none;
    font-weight: 900;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
    cursor: pointer;
    user-select: none;
}

/* Main spacing */
.main{
    padding: 10px 16px 60px;
}

/* Card */
.card{
    max-width: 640px;
    margin: 0 auto;
    padding: 18px 16px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: cardIn .55s ease-out forwards;
}
@keyframes cardIn{
    from{opacity:0; transform: translateY(10px);}
    to{opacity:1; transform: translateY(0);}
}

/* Logo */
.logo-wrap{ display:flex; justify-content:center; margin: 8px 0 12px; }
.logo-wrap img{ width: min(230px, 72vw); height:auto; display:block; }

/* Title */
.page-title{ text-align:center; margin-bottom: 16px; }
.page-title h1{
    margin:0 0 6px;
    font-size: clamp(22px, 4.6vw, 30px);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.3;
}
.page-title p{
    margin:0;
    font-size: clamp(14px, 3.2vw, 17px);
    line-height: 1.85;
    color: var(--ink2);
}

/* Buttons */
.buttons{ display:flex; flex-direction:column; gap:12px; }

.btn{
    min-height: 58px;
    padding: 12px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    text-decoration:none;
    border-radius: 9999px;
    background: var(--glass2);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
    color: var(--ink);
    font-weight: 900;
    font-size: 17px;
    line-height: 1.25;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    transform: translateY(6px);
    opacity: 0;
}
.btn.reveal{ animation: btnIn .45s ease-out forwards; }
@keyframes btnIn{ to{ transform: translateY(0); opacity: 1; } }
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0,0,0,.14); }
.btn:active{ transform: translateY(0); filter: brightness(.98); }

/* icon BEFORE label in all languages */
.btn-left{ display:flex; align-items:center; gap:12px; min-width:0; }
.btn-icon{ width:34px; height:34px; object-fit:contain; display:block; flex:0 0 34px; }
.btn-label{
    display:flex; align-items:center;
    line-height: 1.25;
    padding-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-pill{
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(255,255,255,.96);
    font-size:14px;
    font-weight:900;
    line-height: 1.1;
    padding-bottom: 1px;
}

/* Store CTA */
.btn-store{
    background: linear-gradient(135deg,#D4145A 0%,#FFD66B 100%);
    color:#fff;
    border:none;
}
.btn-store .btn-pill{
    background: rgba(255,255,255,.25);
    color:#fff;
    border-color: rgba(255,255,255,.35);
}

/* Direction only (no order flipping) */
html[dir="rtl"] .btn{ direction: rtl; }
html[dir="ltr"] .btn{ direction: ltr; }
html[dir="rtl"] .btn-pill{ margin-right: 10px; }
html[dir="ltr"] .btn-pill{ margin-left: 10px; }

@media (min-width: 768px){
    .main{ padding: 14px 18px 70px; }
    .card{ padding: 22px 20px 18px; }
    .buttons{ gap: 14px; }
}
