/* =====================================================
   ORIS COFFEE — THE LIVING EMERALD AWWWARDS EXPERIENCE
   The Absolute Pinnacle of Boutique Hospitality Design.
   Deep Forest Emerald, 24K Tuscan Gold, Real-Time Barista
   Steam Engine, Acoustic Synthesis, and Ultra-Neat Jewel Pills.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Amiri:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --pearl:          #FDFBF7;
    --emerald-dark:   #07100D;
    --emerald:        #13241D;
    --emerald-light:  #1E382E;
    --gold:           #DFAF4C;
    --gold-bright:    #F3E0B5;
    --gold-dim:       #8B733D;
    --charcoal:       #111614;
    
    --font-en-head: 'Cinzel', serif;
    --font-en-body: 'Montserrat', sans-serif;
    --font-ar:      'Amiri', serif;
    --font-ar-body: 'Tajawal', sans-serif;

    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body, html {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--emerald-dark);
    color: var(--pearl);
    font-family: var(--font-ar-body);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--emerald-dark); }

/* =========================================
   1. SILK CURTAIN ENTRANCE
   ========================================= */
#silk-entrance {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(circle at center, var(--emerald) 0%, var(--emerald-dark) 85%);
    display: flex; justify-content: center; align-items: center; text-align: center;
}
.silk-content { display: flex; flex-direction: column; align-items: center; }
.silk-logo {
    font-family: var(--font-en-head); font-size: 3.5rem; font-weight: 700;
    color: var(--gold-bright); letter-spacing: 16px; opacity: 0;
    text-shadow: 0 0 30px rgba(223, 175, 76, 0.5);
}
.silk-sub {
    font-family: var(--font-en-body); font-size: 0.75rem; letter-spacing: 0.4em;
    color: var(--gold); margin-top: 0.5rem; opacity: 0;
}

/* =========================================
   2. APP CONTAINER & LAYOUT
   ========================================= */
#app-container {
    display: flex; flex-direction: column; height: 100vh; width: 100%;
    position: relative; opacity: 0;
}

/* --- HERO STAGE (Top Half - Pure 50vh Unblocked Theater!) --- */
.hero-stage {
    position: relative; width: 100%; height: 50vh; flex-shrink: 0;
    overflow: hidden; background: #000;
}
#hero-image-container { position: absolute; inset: 0; }
.hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transform: scale(1.08);
    transition: transform 6s var(--ease-lux);
}
.hero-img.active { transform: scale(1); }

/* --- REAL-TIME STEAM & ICE FROST OVERLAY --- */
.stage-particles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-steam-particle {
    position: absolute; bottom: 20px; width: 18px; height: 45px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7) 0%, transparent 80%);
    border-radius: 50%; filter: blur(6px); animation: riseHeroSteam 3.5s infinite linear;
    pointer-events: none;
}
@keyframes riseHeroSteam {
    0% { transform: translateY(0) scaleX(0.7); opacity: 0; }
    40% { opacity: 0.75; }
    100% { transform: translateY(-180px) scaleX(2.8); opacity: 0; }
}

.hero-frost-particle {
    position: absolute; width: 6px; height: 6px; background: #FFF;
    border-radius: 50%; box-shadow: 0 0 10px #AEE2FF, 0 0 20px #FFF;
    animation: floatHeroFrost 3.5s infinite ease-in-out; pointer-events: none;
}
@keyframes floatHeroFrost {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-30px) scale(1.8); opacity: 0.95; }
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(7,16,13,0.8) 0%, rgba(7,16,13,0.1) 45%, rgba(7,16,13,0.85) 100%);
    z-index: 1;
}

/* --- HEADER & LIVE BARISTA PULSE TICKER --- */
.app-header {
    position: absolute; top: 1.2rem; left: 0; width: 100%;
    padding: 0 1.5rem; z-index: 10; display: flex; flex-direction: column;
    align-items: center; gap: 0.8rem;
}
.header-top { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 900px; }
.brand { font-family: var(--font-en-head); font-size: 1.5rem; font-weight: 700; color: var(--gold-bright); letter-spacing: 0.25em; text-shadow: 0 2px 15px rgba(0,0,0,0.8); }

.em-sound-btn {
    background: rgba(19, 36, 29, 0.75); border: 1px solid var(--gold);
    color: var(--gold-bright); padding: 0.45rem 1rem; border-radius: 100px;
    font-family: var(--font-ar-body); font-size: 0.82rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 0.45rem;
    backdrop-filter: blur(12px); transition: all 0.3s var(--ease-lux);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.em-sound-btn:hover, .em-sound-btn.active { background: var(--gold); color: var(--emerald-dark); box-shadow: 0 0 20px rgba(223, 175, 76, 0.5); }

.live-emerald-pill {
    background: rgba(19, 36, 29, 0.8); border: 1px solid rgba(223, 175, 76, 0.35);
    padding: 0.35rem 1.2rem; border-radius: 100px; font-family: var(--font-ar-body);
    font-size: 0.82rem; color: var(--gold-bright); display: inline-flex; align-items: center; gap: 0.5rem;
    backdrop-filter: blur(15px); box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    max-width: 90%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: pulseDot 2s infinite; flex-shrink: 0; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
.sep { color: rgba(255, 255, 255, 0.2); }

/* --- BRIDGE CATEGORY NAVIGATION CONSOLE (Ultra-Slim, Sleek, Zero Photo Obstruction!) --- */
.bridge-nav-wrapper {
    position: relative; z-index: 20;
    display: flex; justify-content: center; width: 100%;
    margin-top: -1.3rem; /* Floats gently over the line dividing top photo from bottom list! */
    margin-bottom: 0.4rem; padding: 0 1rem;
}
.glass-nav-slim {
    display: inline-flex; gap: 0.35rem;
    background: rgba(10, 20, 16, 0.94); border: 1px solid rgba(223, 175, 76, 0.45);
    padding: 0.35rem; border-radius: 100px;
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.7), inset 0 0 15px rgba(223, 175, 76, 0.15);
    max-width: 520px; width: 100%; justify-content: center;
}
.nav-btn {
    background: transparent; border: none; color: #A8C2B6;
    padding: 0.48rem 1.1rem; border-radius: 100px; font-family: var(--font-ar-body);
    font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.3s var(--ease-lux);
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    flex: 1; white-space: nowrap;
}
.nav-btn:hover { color: var(--pearl); }
.nav-btn.active {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-dim) 100%);
    color: var(--emerald-dark); font-weight: 700; box-shadow: 0 4px 15px rgba(223, 175, 76, 0.4);
}

/* =========================================
   3. MENU LIST STAGE (Bottom Half - 50vh)
   ========================================= */
.menu-stage {
    flex-grow: 1; height: calc(50vh - 1rem); background: var(--emerald-dark);
    display: flex; flex-direction: column; padding: 0.5rem 1.5rem 1.8rem;
    position: relative; z-index: 5;
}
.list-header-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 0.6rem; border-bottom: 1px solid rgba(223, 175, 76, 0.25);
    margin-bottom: 0.8rem; max-width: 800px; width: 100%; margin-left: auto; margin-right: auto;
}
.lh-title { font-family: var(--font-ar); font-size: 1.25rem; font-weight: 700; color: var(--gold-bright); }
.lh-hint { font-size: 0.78rem; color: #87A396; }

.list-container {
    flex-grow: 1; overflow-y: auto; padding-right: 0.4rem;
    max-width: 800px; width: 100%; margin: 0 auto;
    scrollbar-width: thin; scrollbar-color: var(--gold-dim) rgba(0,0,0,0.2);
}
.list-container::-webkit-scrollbar { width: 5px; }
.list-container::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 10px; }

/* --- ULTRA-NEAT EMERALD GLASS JEWEL PILL ITEMS --- */
.menu-item {
    position: relative; overflow: hidden;
    background: rgba(19, 36, 29, 0.65); border: 1px solid rgba(223, 175, 76, 0.28);
    border-radius: 18px; padding: 1.1rem 1.5rem; margin-bottom: 0.85rem;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: all 0.35s var(--ease-lux);
    backdrop-filter: blur(15px); box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.menu-item:hover {
    border-color: var(--gold-bright); transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(223, 175, 76, 0.2);
}
.menu-item.active {
    background: linear-gradient(135deg, rgba(30, 56, 46, 0.95), rgba(19, 36, 29, 0.98));
    border-color: var(--gold-bright); transform: translateX(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(223, 175, 76, 0.3);
}

.laser-indicator {
    position: absolute; right: 0; top: 0; width: 5px; height: 100%;
    background: var(--gold-bright); box-shadow: 0 0 15px var(--gold-bright);
    opacity: 0; transition: opacity 0.3s;
}
.menu-item.active .laser-indicator { opacity: 1; }

.item-sheen {
    position: absolute; top: 0; left: -100%; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg); animation: sweepSheen 7s infinite ease-in-out;
    pointer-events: none; z-index: 2;
}
@keyframes sweepSheen { 0%, 75% { left: -100%; } 100% { left: 150%; } }

.item-info { display: flex; flex-direction: column; z-index: 3; }
.item-name-en { font-family: var(--font-en-head); font-size: 0.72rem; letter-spacing: 0.25em; color: var(--gold); text-transform: uppercase; font-weight: 700; margin-bottom: 0.15rem; }
.item-name-ar { font-family: var(--font-ar); font-size: 1.45rem; font-weight: 700; color: var(--pearl); line-height: 1.2; }
.item-desc { font-family: var(--font-ar-body); font-size: 0.85rem; color: #9AB5AA; margin-top: 0.3rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.item-price-wrap { display: flex; align-items: center; gap: 0.8rem; z-index: 3; }
.item-price {
    font-family: var(--font-en-head); font-size: 1.25rem; font-weight: 700;
    color: var(--gold-bright); text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.item-price span { font-family: var(--font-ar-body); font-size: 0.75rem; font-weight: 700; color: #9AB5AA; margin-right: 0.25rem; }

.item-arrow {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(223, 175, 76, 0.15); border: 1px solid var(--gold);
    color: var(--gold-bright); display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; transition: all 0.3s;
}
.menu-item:hover .item-arrow, .menu-item.active .item-arrow {
    background: var(--gold); color: var(--emerald-dark); transform: translateX(-3px);
}

/* =========================================
   4. INFO BUTTON & MODAL
   ========================================= */
.info-btn {
    position: fixed; bottom: 1.8rem; left: 1.8rem; z-index: 100;
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    border: 1px solid #FFF; color: var(--emerald-dark); font-size: 1.3rem;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    box-shadow: 0 10px 25px rgba(223, 175, 76, 0.45); transition: all 0.3s var(--ease-lux);
}
.info-btn:hover { transform: scale(1.1) rotate(15deg); box-shadow: 0 15px 35px rgba(223, 175, 76, 0.6); }

.info-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    padding: 1.5rem; visibility: hidden; opacity: 0;
    transition: opacity 0.4s var(--ease-lux), visibility 0.4s;
}
.info-modal.active { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 16, 13, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.modal-content {
    position: relative; z-index: 2; background: var(--emerald); color: var(--pearl);
    border: 2px solid var(--gold); border-radius: 24px; padding: 2.5rem 2rem;
    max-width: 480px; width: 100%; text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    transform: translateY(20px) scale(0.96); transition: transform 0.4s var(--ease-lux);
}
.info-modal.active .modal-content { transform: translateY(0) scale(1); }

.close-modal {
    position: absolute; top: 1.2rem; right: 1.2rem; background: rgba(7, 16, 13, 0.8);
    border: 1px solid var(--gold); color: var(--pearl); width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 1rem; transition: all 0.3s;
}
.close-modal:hover { background: var(--gold); color: var(--emerald-dark); }
.modal-brand { font-family: var(--font-en-head); font-size: 2.2rem; font-weight: 700; color: var(--gold-bright); letter-spacing: 0.25em; }
.modal-est { font-family: var(--font-en-body); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 1rem; }
.modal-bio { font-family: var(--font-ar-body); font-size: 1rem; color: #A8C2B6; line-height: 1.6; margin-bottom: 1.8rem; }
.modal-details { display: flex; flex-direction: column; gap: 0.9rem; border-top: 1px solid rgba(223, 175, 76, 0.3); padding-top: 1.5rem; font-size: 0.95rem; }
.footer-row { display: flex; align-items: center; justify-content: center; gap: 0.8rem; color: var(--gold-bright); }

@media (max-width: 650px) {
    .brand { font-size: 1.2rem; }
    .em-sound-btn span { display: none; }
    .em-sound-btn { padding: 0.5rem; border-radius: 50%; width: 38px; height: 38px; justify-content: center; }
    .nav-btn { padding: 0.45rem 0.6rem; font-size: 0.78rem; gap: 0.25rem; }
    .menu-item { padding: 0.95rem 1.2rem; }
    .item-name-ar { font-size: 1.25rem; }
    .bridge-nav-wrapper { margin-top: -1.1rem; padding: 0 0.5rem; }
}
@media (max-width: 400px) {
    .nav-btn span { font-size: 0.72rem; }
    .nav-btn i { display: none; }
}
