/* ======================================================
   ALI BABA RESTORAN — style.css
   ====================================================== */

:root {
    --navy:       #0a2a4a;
    --navy-dark:  #061828;
    --navy-mid:   #143d6b;
    --gold:       #c9a84c;
    --gold-dark:  #a8842a;
    --gold-light: #e8d5a3;
    --cream:      #f8f5f0;
    --cream-dark: #ede9e2;
    --white:      #ffffff;
    --text:       #2d3748;
    --text-med:   #4a5568;
    --text-light: #718096;
    --shadow:     0 4px 20px rgba(0,0,0,0.10);
    --shadow-md:  0 8px 30px rgba(0,0,0,0.15);
    --ease:       all 0.3s ease;
}

/* ======== RESET ======== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html  { scroll-behavior:smooth; font-size:16px; }
body  { font-family:'Lato',sans-serif; color:var(--text); background:var(--white); overflow-x:hidden; }
img   { max-width:100%; display:block; object-fit:cover; }
a     { text-decoration:none; color:inherit; }
ul    { list-style:none; }
button{ cursor:pointer; border:none; background:none; font-family:inherit; }

/* ======== UTILITIES ======== */
.container { max-width:1200px; margin:0 auto; padding:0 1.5rem; }

.sec-label {
    font-size:0.75rem; font-weight:700; letter-spacing:0.35em;
    text-transform:uppercase; color:var(--gold); margin-bottom:0.75rem; display:block;
}
.sec-label.center { text-align:center; }

.sec-title {
    font-family:'Playfair Display',serif;
    font-size:clamp(1.9rem,3.5vw,2.8rem);
    font-weight:700; color:var(--navy); line-height:1.2; margin-bottom:1.25rem;
}
.sec-title.center { text-align:center; }
.sec-title.light  { color:var(--white); }

.gold-sep { width:56px; height:3px; background:var(--gold); border-radius:2px; margin-bottom:1.75rem; }
.gold-sep.center { margin-left:auto; margin-right:auto; }

/* ======== BUTTONS ======== */
.btn-gold {
    display:inline-flex; align-items:center; gap:0.5rem;
    padding:0.85rem 2rem; background:var(--gold); color:var(--navy-dark);
    font-weight:700; font-size:0.85rem; letter-spacing:0.1em; text-transform:uppercase;
    border-radius:3px; border:2px solid var(--gold); transition:var(--ease);
}
.btn-gold:hover { background:var(--gold-dark); border-color:var(--gold-dark); transform:translateY(-2px); box-shadow:0 6px 20px rgba(201,168,76,.35); }

.btn-white-outline {
    display:inline-flex; align-items:center; gap:0.5rem;
    padding:0.85rem 2rem; background:transparent; color:var(--white);
    font-weight:700; font-size:0.85rem; letter-spacing:0.1em; text-transform:uppercase;
    border-radius:3px; border:2px solid rgba(255,255,255,.65); transition:var(--ease);
}
.btn-white-outline:hover { background:rgba(255,255,255,.12); border-color:var(--white); transform:translateY(-2px); }

.btn-outline-dark {
    display:inline-flex; align-items:center; gap:0.5rem;
    padding:0.85rem 2rem; background:transparent; color:var(--navy);
    font-weight:700; font-size:0.85rem; letter-spacing:0.1em; text-transform:uppercase;
    border-radius:3px; border:2px solid var(--navy); transition:var(--ease);
}
.btn-outline-dark:hover { background:var(--navy); color:var(--white); transform:translateY(-2px); }

/* ======== LANG SWITCHER ======== */
.lang-switcher { display:flex; gap:3px; }
.lang-btn {
    padding:0.35rem 0.6rem; font-size:0.7rem; font-weight:700; letter-spacing:0.08em;
    border-radius:3px; color:rgba(255,255,255,.65); transition:var(--ease);
    border:1px solid rgba(255,255,255,.2);
}
.lang-btn:hover  { color:var(--white); border-color:rgba(255,255,255,.5); }
.lang-btn.active { background:var(--gold); color:var(--navy-dark); border-color:var(--gold); }

/* ======== NAVBAR ======== */
.navbar {
    position:fixed; top:0; left:0; right:0; z-index:1000;
    padding:1.1rem 0; transition:all 0.4s ease;
}
.navbar.scrolled {
    background:rgba(6,24,40,.97); padding:0.65rem 0;
    box-shadow:0 4px 30px rgba(0,0,0,.35); backdrop-filter:blur(12px);
}

.nav-container {
    max-width:1200px; margin:0 auto; padding:0 1.5rem;
    display:flex; align-items:center; justify-content:space-between;
}

/* Logo — image only */
.logo { display:flex; align-items:center; }
.logo-img { height:50px; width:auto; border-radius:4px; }

.nav-menu { display:flex; align-items:center; gap:1.5rem; }
.nav-menu > li > a {
    font-size:0.8rem; font-weight:700; letter-spacing:0.1em;
    text-transform:uppercase; color:rgba(255,255,255,.82); transition:color 0.3s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active-link { color:var(--gold); }

.nav-btn {
    padding:0.55rem 1.3rem; background:var(--gold); color:var(--navy-dark)!important;
    border-radius:3px; display:inline-flex; align-items:center; gap:0.4rem;
}
.nav-btn:hover { background:var(--gold-dark)!important; transform:translateY(-1px); }

.hamburger { display:none; flex-direction:column; gap:5px; padding:5px; z-index:1100; }
.hamburger span { display:block; width:25px; height:2px; background:var(--white); border-radius:2px; transition:var(--ease); }
.hamburger.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ======== HERO ======== */
.hero {
    position:relative; height:100vh; min-height:640px;
    display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.hero-slider { position:absolute; inset:0; }
.hero-slide  { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.2s ease; }
.hero-slide.active { opacity:1; }

.hero-overlay {
    position:absolute; inset:0;
    background:linear-gradient(180deg,rgba(6,24,40,.55) 0%,rgba(6,24,40,.3) 40%,rgba(6,24,40,.65) 100%);
}

.hero-content {
    position:relative; z-index:2; text-align:center; padding:0 1.5rem; max-width:820px;
}
.hero-label  { font-size:0.78rem; font-weight:700; letter-spacing:0.45em; text-transform:uppercase; color:var(--gold-light); margin-bottom:1.5rem; opacity:.9; }
.hero-title  { font-family:'Playfair Display',serif; margin-bottom:0.5rem; line-height:1; }
.hero-title em { display:block; font-size:clamp(3.5rem,10vw,7rem); font-style:italic; font-weight:700; color:var(--gold); text-shadow:0 0 60px rgba(201,168,76,.35); }
.hero-title span { display:block; font-size:clamp(1.2rem,3vw,2rem); font-weight:400; color:var(--white); letter-spacing:0.55em; text-transform:uppercase; margin-top:.25rem; }
.hero-since  { font-family:'Playfair Display',serif; font-style:italic; font-size:1.05rem; color:var(--gold-light); margin:1rem 0 1.5rem; opacity:.88; }
.hero-desc   { font-size:1rem; font-weight:300; color:rgba(255,255,255,.82); line-height:1.85; margin-bottom:2.5rem; }
.hero-cta    { display:flex; align-items:center; justify-content:center; gap:1rem; flex-wrap:wrap; }

.scroll-down-btn {
    position:absolute; bottom:2rem; left:50%; transform:translateX(-50%); z-index:2;
    width:40px; height:40px; border:2px solid rgba(255,255,255,.45); border-radius:50%;
    display:flex; align-items:center; justify-content:center; color:var(--white); font-size:.8rem;
    animation:bounce 2s infinite; transition:var(--ease);
}
.scroll-down-btn:hover { border-color:var(--gold); color:var(--gold); }
@keyframes bounce {
    0%,100% { transform:translateX(-50%) translateY(0); }
    50%      { transform:translateX(-50%) translateY(8px); }
}

/* ======== ABOUT ======== */
.about { padding:6rem 0; background:var(--white); }
.about-wrap { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }

.about-img-grid { display:grid; grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; gap:8px; border-radius:6px; overflow:hidden; }
.ag-main  { grid-row:1/3; height:420px; width:100%; border-radius:4px 0 0 4px; }
.ag-sm    { height:206px; width:100%; }
.ag-sm1   { border-radius:0 4px 0 0; }
.ag-sm2   { border-radius:0 0 4px 0; }

.about-stats { display:flex; align-items:center; background:var(--navy); border-radius:0 0 6px 6px; padding:1.15rem 2rem; }
.astat       { flex:1; text-align:center; }
.astat-n     { display:block; font-family:'Playfair Display',serif; font-size:1.65rem; font-weight:700; color:var(--gold); }
.astat-l     { font-size:.68rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-top:.2rem; }
.astat-sep   { width:1px; height:40px; background:rgba(255,255,255,.18); }

.about-desc     { font-size:.975rem; line-height:1.95; color:var(--text-med); margin-bottom:2.25rem; }
.about-features { display:flex; flex-direction:column; gap:1.4rem; }
.af       { display:flex; align-items:flex-start; gap:1rem; }
.af-icon  { width:44px; height:44px; background:var(--gold-light); border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--gold-dark); font-size:1rem; }
.af-text h4 { font-family:'Playfair Display',serif; font-size:1rem; font-weight:600; color:var(--navy); margin-bottom:.2rem; }
.af-text p  { font-size:.875rem; color:var(--text-light); line-height:1.6; }

/* ======== GALLERY PREVIEW (index.html) ======== */
.gallery { padding:6rem 0 0; background:var(--cream); }

.gallery-preview-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:2rem;
}
.gpg-item { display:block; overflow:hidden; aspect-ratio:4/3; }
.gpg-item img { width:100%; height:100%; transition:transform .5s ease; }
.gpg-item:hover img { transform:scale(1.06); }

.gallery-actions {
    display:flex; align-items:center; justify-content:center; gap:1rem;
    flex-wrap:wrap; padding:2.5rem 1.5rem 4rem;
}

/* ======== GALLERY PAGE (gallery.html) ======== */
.gallery-hero {
    position:relative; height:45vh; min-height:320px;
    display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.gallery-hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.gallery-hero-content { position:relative; z-index:2; text-align:center; padding:0 1.5rem; }
.gallery-hero-title {
    font-family:'Playfair Display',serif;
    font-size:clamp(2.5rem,6vw,4.5rem);
    font-weight:700; font-style:italic; color:var(--white);
    text-shadow:0 2px 20px rgba(0,0,0,.4); margin-bottom:1.25rem;
}

.gallery-page { padding:4rem 0 6rem; background:var(--cream); }

.gallery-full-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.gfg-item { overflow:hidden; aspect-ratio:4/3; cursor:pointer; border-radius:3px; }
.gfg-item img { width:100%; height:100%; transition:transform .5s ease; }
.gfg-item:hover img { transform:scale(1.05); }

/* ======== MENU ======== */
.menu-sec { padding:6rem 0; background:var(--cream-dark); position:relative; }
.menu-bg-pattern { position:absolute; inset:0; opacity:.025; background-image:repeating-linear-gradient(45deg,var(--navy) 0,var(--navy) 1px,transparent 0,transparent 50%); background-size:20px 20px; pointer-events:none; }

.menu-tabs-scroll { overflow-x:auto; margin:2.5rem 0 0; padding-bottom:.5rem; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.menu-tabs-scroll::-webkit-scrollbar { display:none; }
.menu-tabs { display:flex; gap:.4rem; width:max-content; min-width:100%; justify-content:center; padding:.5rem; background:rgba(255,255,255,.85); border-radius:6px; box-shadow:var(--shadow); }

.mtab { display:flex; align-items:center; gap:.45rem; padding:.65rem 1.2rem; border-radius:4px; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-med); transition:var(--ease); white-space:nowrap; }
.mtab i { font-size:.85rem; }
.mtab:hover  { background:var(--cream-dark); color:var(--navy); }
.mtab.active { background:var(--navy); color:var(--gold); }

.menu-panels { margin-top:2rem; }
.menu-panel  { display:none; }
.menu-panel.active { display:block; animation:panelIn .4s ease; }
@keyframes panelIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.panel-subtitle { text-align:center; font-size:.73rem; font-style:italic; color:var(--text-light); letter-spacing:.15em; text-transform:uppercase; margin-bottom:2rem; }

.menu-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1px; background:rgba(0,0,0,.07); border-radius:6px; overflow:hidden; box-shadow:var(--shadow); }
.menu-item { background:var(--white); padding:1.2rem 1.4rem; transition:background .2s; }
.menu-item:hover { background:#f0ede6; }

.cat-badge { display:inline-block; font-size:.62rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--gold-dark); background:var(--gold-light); padding:.15rem .5rem; border-radius:2px; margin-bottom:.5rem; }
.mi-primary   { font-family:'Playfair Display',serif; font-size:.93rem; font-weight:600; color:var(--navy); margin-bottom:.2rem; }
.mi-secondary { font-size:.78rem; color:var(--text-med); margin-bottom:.12rem; }
.mi-tertiary  { font-size:.73rem; font-style:italic; color:var(--text-light); }

.menu-note { text-align:center; font-size:.82rem; font-style:italic; color:var(--text-light); padding:1rem 1.5rem; background:rgba(255,255,255,.7); border-radius:4px; margin-bottom:1.25rem; border-left:3px solid var(--gold); }

/* ======== HOURS ======== */
.hours { padding:6rem 0; background:linear-gradient(135deg,var(--navy-dark) 0%,var(--navy) 100%); position:relative; overflow:hidden; }
.hours::before { content:''; position:absolute; top:-40%; right:-15%; width:600px; height:600px; background:radial-gradient(circle,rgba(201,168,76,.07) 0%,transparent 70%); pointer-events:none; }
.hours-wrap { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }
.hours-note { font-size:.94rem; color:rgba(255,255,255,.62); line-height:1.85; margin-bottom:2rem; }
.hours-schedule { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:6px; padding:1.75rem 2rem; backdrop-filter:blur(10px); }
.days-grid { display:flex; flex-direction:column; }
.day-row { display:flex; justify-content:space-between; align-items:center; padding:.85rem 0; border-bottom:1px solid rgba(255,255,255,.08); }
.day-row.last { border-bottom:none; }
.day-name { font-size:.88rem; color:rgba(255,255,255,.78); }
.day-time { font-family:'Playfair Display',serif; font-size:.93rem; font-weight:600; color:var(--gold); }

/* ======== CONTACT ======== */
.contact { padding:6rem 0; background:var(--white); }
.contact-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; margin-top:3rem; }
.contact-card { background:var(--cream); border-radius:6px; padding:2rem 1.25rem; text-align:center; border:1px solid var(--cream-dark); transition:var(--ease); }
.contact-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:var(--gold-light); }
.cc-icon { width:54px; height:54px; background:var(--navy); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 1.2rem; font-size:1.2rem; color:var(--gold); }
.contact-card h3 { font-family:'Playfair Display',serif; font-size:1.05rem; color:var(--navy); margin-bottom:.65rem; }
.contact-card p  { font-size:.85rem; color:var(--text-med); line-height:1.65; margin-bottom:1.1rem; }
.cc-link { font-size:.75rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-dark); transition:color .3s; }
.cc-link:hover { color:var(--navy); }
.cc-link i { margin-left:.3rem; font-size:.7rem; }

/* ======== FOOTER ======== */
.footer { background:var(--navy-dark); padding:4rem 0 0; }
.footer-top { display:grid; grid-template-columns:2fr 1fr 2fr; gap:3rem; padding-bottom:3rem; border-bottom:1px solid rgba(255,255,255,.09); }
.footer-logo-text { font-family:'Playfair Display',serif; font-size:1.9rem; font-weight:700; font-style:italic; color:var(--gold); margin-bottom:.2rem; }
.footer-logo-sub  { font-size:.62rem; font-weight:700; letter-spacing:.25em; text-transform:uppercase; color:rgba(255,255,255,.45); margin-bottom:.85rem; }
.footer-tagline   { font-size:.85rem; font-style:italic; color:rgba(255,255,255,.4); margin-bottom:1.25rem; }
.footer-social { display:flex; gap:.65rem; }
.footer-social a { width:36px; height:36px; background:rgba(255,255,255,.08); border-radius:50%; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.6); font-size:.9rem; transition:var(--ease); }
.footer-social a:hover { background:var(--gold); color:var(--navy-dark); }
.footer-links h4,.footer-contact h4 { font-size:.72rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); margin-bottom:1.2rem; }
.footer-links ul { display:flex; flex-direction:column; gap:.65rem; }
.footer-links a { font-size:.85rem; color:rgba(255,255,255,.55); transition:color .3s; }
.footer-links a:hover { color:var(--gold); }
.footer-contact p { font-size:.8rem; color:rgba(255,255,255,.55); margin-bottom:.55rem; display:flex; align-items:flex-start; gap:.55rem; line-height:1.5; }
.footer-contact i { color:var(--gold); font-size:.82rem; flex-shrink:0; margin-top:.1rem; }
.footer-bottom { padding:1.5rem 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; }
.footer-bottom p { font-size:.75rem; color:rgba(255,255,255,.32); }
.footer-credit { font-size:.75rem; color:rgba(255,255,255,.32); }
.footer-credit a { color:var(--gold); opacity:.8; transition:opacity .3s; }
.footer-credit a:hover { opacity:1; }

/* ======== LIGHTBOX ======== */
.lightbox-overlay { position:fixed; inset:0; background:rgba(0,0,0,.93); z-index:2000; opacity:0; pointer-events:none; transition:opacity .3s; }
.lightbox-overlay.active { opacity:1; pointer-events:all; }

.lightbox { position:fixed; inset:0; z-index:2100; display:flex; align-items:center; justify-content:center; padding:2rem; opacity:0; pointer-events:none; transition:opacity .3s; }
.lightbox.active { opacity:1; pointer-events:all; }

.lb-img-wrap { max-width:90vw; max-height:85vh; user-select:none; }
.lb-img-wrap img { max-width:100%; max-height:85vh; border-radius:4px; pointer-events:none; display:block; }

.lb-close,.lb-prev,.lb-next {
    position:absolute; background:rgba(255,255,255,.1); color:var(--white);
    border-radius:50%; width:44px; height:44px; display:flex; align-items:center;
    justify-content:center; font-size:1rem; transition:background .3s; backdrop-filter:blur(4px);
}
.lb-close { top:1.25rem; right:1.25rem; }
.lb-prev  { left:1.25rem; top:50%; transform:translateY(-50%); }
.lb-next  { right:1.25rem; top:50%; transform:translateY(-50%); }
.lb-close:hover,.lb-prev:hover,.lb-next:hover { background:var(--gold); color:var(--navy-dark); }

.lb-counter { position:absolute; bottom:1.25rem; left:50%; transform:translateX(-50%); font-size:.8rem; font-weight:700; letter-spacing:.15em; color:rgba(255,255,255,.7); background:rgba(0,0,0,.4); padding:.35rem .9rem; border-radius:20px; }

/* ======== FADE-IN ======== */
.fade-in { opacity:0; transform:translateY(28px); transition:opacity .7s ease,transform .7s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ======== MEDIA QUERIES ======== */
@media (max-width:1024px) {
    .contact-grid { grid-template-columns:repeat(2,1fr); }
    .footer-top   { grid-template-columns:1fr 1fr; }
    .footer-brand { grid-column:1/-1; }
}

@media (max-width:768px) {
    .hamburger { display:flex; }
    .nav-menu {
        position:fixed; top:0; right:-100%; width:min(300px,82vw); height:100vh;
        background:var(--navy-dark); flex-direction:column; justify-content:center;
        gap:1.5rem; padding:2rem; transition:right .4s ease; box-shadow:-10px 0 40px rgba(0,0,0,.4);
    }
    .nav-menu.open { right:0; }
    .nav-menu > li > a { font-size:1rem; }

    /* Mobile gallery preview: show 2 cols, horizontal scroll */
    .gallery-preview-grid {
        display:flex;
        overflow-x:auto;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
        padding:0 1.5rem;
        gap:8px;
    }
    .gallery-preview-grid::-webkit-scrollbar { display:none; }
    .gpg-item { flex:0 0 calc(50vw - 16px); scroll-snap-align:start; aspect-ratio:3/4; }

    .about-wrap  { grid-template-columns:1fr; gap:2.5rem; }
    .hours-wrap  { grid-template-columns:1fr; gap:2.5rem; }
    .contact-grid { grid-template-columns:1fr; max-width:360px; margin-left:auto; margin-right:auto; }
    .footer-top  { grid-template-columns:1fr; gap:2rem; }
    .footer-bottom { flex-direction:column; gap:.4rem; text-align:center; }
    .menu-tabs { justify-content:flex-start; }
    .menu-grid { grid-template-columns:1fr; }
    .gallery-full-grid { grid-template-columns:1fr 1fr; gap:6px; }
    .ag-main { height:280px; }
    .ag-sm   { height:136px; }
}

@media (max-width:480px) {
    .hero-title em { font-size:3rem; }
    .hero-cta { flex-direction:column; align-items:stretch; }
    .btn-gold,.btn-white-outline { justify-content:center; }
    .gallery-hero-title { font-size:2.2rem; }
    .gallery-full-grid { grid-template-columns:1fr 1fr; gap:4px; }
}
