/* ===================================================
   HAWAR RESTAURANT — Shared Design System
   =================================================== */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Cinzel+Decorative:wght@400;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --gold:         #C9A84C;
    --gold-light:   #E8C97A;
    --gold-dark:    #9A7630;
    --blue-deep:    #1A3A5C;
    --blue-mid:     #2E6DA4;
    --blue-light:   #5B9BD5;
    --blue-pale:    #D6E8F7;
    --cream:        #FDF8F0;
    --cream-warm:   #F5EDDA;
    --white:        #FFFFFF;
    --text-dark:    #1C2B3A;
    --text-mid:     #3D5A73;
    --shadow-gold:  rgba(201,168,76,0.3);
    --shadow-blue:  rgba(26,58,92,0.15);
    --nav-height:   65px;
    --quick-bar-h:  52px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Naskh Arabic', 'Amiri', serif;
    background-color: var(--cream);
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== OPTIMIZED ISLAMIC GEOMETRIC PATTERN ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='0.4' opacity='0.1'%3E%3Cpolygon points='40,5 75,22 75,58 40,75 5,58 5,22'/%3E%3Cpolygon points='40,15 65,27 65,53 40,65 15,53 15,27'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* ===== AMBIENT GLOW ===== */
body::after {
    content: '';
    position: fixed;
    top: -30%; right: -20%;
    width: 70vw; height: 70vw;
    background: radial-gradient(ellipse, rgba(91,155,213,0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ===================================================
   CENTERED & ANIMATED NAVBAR
   =================================================== */
.navbar {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(26,58,92,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.35);
    box-shadow: 0 4px 20px rgba(26,58,92,0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.navbar-inner {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px var(--shadow-gold);
}

.brand-text { display:flex; flex-direction:column; line-height:1.1; }

.brand-ar {
    font-family: 'Amiri', serif;
    font-size: 1.15rem; font-weight: 700;
    color: var(--gold-light);
}

.brand-en {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.55rem;
    color: rgba(232,201,122,0.65);
    letter-spacing: 0.22em;
}

/* ===== 3-DASHES MENU TOGGLE BUTTON (PC & PHONE) ===== */
.mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(201, 168, 76, 0.12);
    border: 1.5px solid rgba(201, 168, 76, 0.5);
    border-radius: 25px;
    cursor: pointer;
    z-index: 1001;
    padding: 7px 18px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mobile-nav-toggle:hover {
    background: rgba(201, 168, 76, 0.25);
    border-color: var(--gold-light);
    box-shadow: 0 4px 15px var(--shadow-gold);
}

.nav-toggle-text {
    font-family: 'Amiri', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
}

.hamburger-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.hamburger-bars .bar {
    width: 100%;
    height: 2px;
    background-color: var(--gold-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.mobile-nav-toggle.open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== 3-DASHES SCROLLABLE DROPDOWN PANEL (PC & PHONE) ===== */
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

.nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    height: calc(100vh - var(--nav-height));
    background: rgba(10, 25, 45, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 16px 60px 16px;
    gap: 10px;
    border-top: 1px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 99999;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
    touch-action: pan-y !important;
}

.nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-link {
    width: 100%;
    max-width: 360px;
    text-align: center;
    padding: 12px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 30px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold-light);
    box-shadow: 0 4px 15px var(--shadow-gold);
}

/* ===================================================
   STICKY TRANSPARENT QUICK-NAV BAR WITH GOLD SECTIONS
   =================================================== */
.quick-nav-bar {
    position: sticky;
    top: 0;
    z-index: 990;
    background: rgba(253, 248, 240, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 4px 18px rgba(26, 58, 92, 0.07);
    min-height: var(--quick-bar-h);
    height: auto;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.quick-nav-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px 10px;
    padding: 4px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.quick-nav-container.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.quick-nav-container::-webkit-scrollbar { display: none; }

/* ===== STICKY NAV & CATEGORY BUTTONS FOR MENU.HTML ===== */
.sticky-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 990;
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
    width: 100%;
}

.sticky-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hamburger toggle — hidden on desktop */
.sticky-nav-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    cursor: pointer;
    background: none;
    border: none;
    align-items: center;
    justify-content: space-between;
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    gap: 10px;
}

.sticky-nav-toggle .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}

.sticky-nav-toggle .hamburger span {
    display: block;
    height: 2.5px;
    border-radius: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
    width: 100%;
}

.sticky-nav-toggle.open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.sticky-nav-toggle.open .hamburger span:nth-child(2) { opacity: 0; }
.sticky-nav-toggle.open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.category-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Amiri', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.1);
    border: 1.5px solid rgba(201, 168, 76, 0.45);
    padding: 5px 14px;
    border-radius: 25px;
    white-space: nowrap;
    transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold-light);
    box-shadow: 0 3px 12px var(--shadow-gold);
}

/* Mobile: hamburger replaces the nav bar */
@media (max-width: 700px) {
    .sticky-nav-toggle {
        display: flex;
    }
    .sticky-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px 16px 14px;
        max-height: 65vh;
        overflow-y: auto;
        border-top: 1px solid rgba(201, 168, 76, 0.2);
    }
    .sticky-nav.open {
        display: flex;
    }
    .category-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 9px 14px;
    }
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Amiri', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.1);
    border: 1.5px solid rgba(201, 168, 76, 0.45);
    padding: 5px 15px;
    border-radius: 25px;
    white-space: nowrap;
    transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

.quick-chip:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--white);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-gold);
}

.quick-chip.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold-light);
    font-weight: 700;
    box-shadow: 0 3px 12px var(--shadow-gold);
    transform: scale(1.05);
}

/* ===================================================
   PAGE WRAPPER
   =================================================== */
.page-wrapper {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 50px;
    min-height: 100vh;
}

/* ===== PAGE HERO BANNER ===== */
.page-banner {
    text-align: center;
    padding: 35px 20px 25px;
    position: relative;
}

.page-banner .eyebrow {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.65rem;
    letter-spacing: 0.45em;
    color: var(--blue-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.page-banner h1 {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--blue-deep);
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.page-banner h1::after {
    content: '';
    position: absolute;
    bottom: -8px; left:50%;
    transform: translateX(-50%);
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: var(--gold);
    font-size: 0.75rem;
}
.ornament-row::before, .ornament-row::after {
    content: '';
    width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament-row::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ===================================================
   ITEMS GRID
   =================================================== */
.section-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding-top: 10px;
}

.sub-cat {
    font-family: 'Amiri', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-mid);
    text-align: center;
    margin: 35px 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.sub-cat::before, .sub-cat::after {
    content: '✦';
    font-size: 0.6rem;
    color: var(--gold);
}

/* ===================================================
   VERTICAL ITEM CARD — Full-width 16:9 image on top
   =================================================== */
.item-card {
    cursor: pointer;
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.25);
    box-shadow: 0 4px 20px var(--shadow-blue);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-blue), 0 3px 18px var(--shadow-gold);
    border-color: rgba(201,168,76,0.65);
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background-color: var(--cream-warm);
    flex-shrink: 0;
}

.card-img::after {
    content:'';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(26,58,92,0.25));
}

.card-img img,
.item-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.item-card:hover .card-img img,
.item-card:hover > img {
    transform: scale(1.08);
}

.card-body {
    padding: 14px 18px 16px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-name-ar {
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 2px;
    line-height: 1.3;
}

.item-name-en {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.58rem;
    color: var(--gold-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.item-price {
    display: none !important;
}

.card-expand-btn {
    display: none !important;
}

.item-card-details {
    width: 100%;
    flex-basis: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    background: var(--cream);
    border-top: 1px solid transparent;
    padding: 0 16px;
    text-align: right;
}

.item-card.expanded .item-card-details {
    max-height: 200px;
    opacity: 1;
    padding: 12px 16px 16px;
    border-top-color: rgba(201,168,76,0.3);
}

.detail-badge {
    display: inline-block;
    background: rgba(26,58,92,0.08);
    color: var(--blue-deep);
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    border: 1px solid rgba(201,168,76,0.3);
}

.detail-desc {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* ===================================================
   SCROLL-TO-TOP
   =================================================== */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom:25px; left:25px;
    z-index: 900;
    width:45px; height:45px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 1.2rem;
    text-align: center;
    line-height: 45px;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow-blue);
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
    position: relative; z-index:1;
    background: var(--blue-deep);
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(201,168,76,0.3);
    margin-top: 50px;
}
.footer-brand {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 4px;
}
.footer-tagline {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.6rem;
    color: rgba(201,168,76,0.45);
    letter-spacing: 0.3em;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 12px;
    direction: ltr;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(201,168,76,0.55);
    border-radius: 50%;
    color: var(--gold-light);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover {
    background: var(--gold);
    color: var(--blue-deep);
    transform: translateY(-2px);
}
.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
}
.social-links svg.instagram-icon {
    fill: none;
    stroke: currentColor;
}
.social-links svg.instagram-icon .social-dot {
    fill: currentColor;
    stroke: none;
}
.social-links svg .social-dot { stroke: none; }
.footer-legal {
    color: rgba(253,248,240,0.6);
    font-size: 0.8rem;
}

/* ===================================================
   RESPONSIVE MEDIA QUERIES
   =================================================== */
@media (max-width: 850px) {
    .brand-en { display:none; }
    .brand-ar { font-size:1.05rem; }
    .navbar-logo { width:38px; height:38px; }
    
    .section-container { padding:0 12px; }
    .items-grid { gap:12px; }
    .card-img { aspect-ratio: 16 / 9; }
    .item-name-ar { font-size:1rem; }
    .card-body { padding:10px 12px; }
    .page-banner h1 { font-size:2rem; }
}

@media (max-width: 480px) {
    .items-grid { gap:10px; }
    .card-body { padding:8px 10px; }
    .item-name-ar { font-size:0.9rem; }
    .item-name-en { font-size:0.5rem; }
}

/* ===================================================
   CATEGORY NATURAL IMAGE & COMPACT PRICE LIST SYSTEM
   =================================================== */
.category-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px auto 30px auto;
    width: 100%;
    text-align: center;
}

.category-natural-img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(26, 58, 92, 0.22), 0 0 25px rgba(201, 168, 76, 0.3);
    border: 2px solid rgba(201, 168, 76, 0.45);
    margin-bottom: 14px;
    object-fit: contain;
}

.category-image-label {
    font-family: 'Amiri', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--blue-deep);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.06));
    border: 1.5px solid rgba(201, 168, 76, 0.45);
    padding: 6px 28px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.15);
}

.price-list-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 35px auto;
    background: var(--white);
    border-radius: 22px;
    padding: 28px 34px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 8px 30px var(--shadow-blue), 0 0 15px rgba(201, 168, 76, 0.12);
    position: relative;
    overflow: hidden;
}

.price-list-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: 'Amiri', serif;
    font-size: 1.18rem;
    color: var(--blue-deep);
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.price-item:hover {
    background: rgba(201, 168, 76, 0.08);
    transform: translateX(-3px);
}

.price-item-name {
    font-weight: 700;
    white-space: nowrap;
    color: var(--blue-deep);
}

.price-item-dots {
    flex: 1;
    border-bottom: 2px dotted rgba(201, 168, 76, 0.45);
    margin: 0 14px;
    align-self: center;
}

.price-item-val {
    display: none;
}

@media (max-width: 650px) {
    .price-list-container {
        padding: 18px 20px;
        border-radius: 16px;
    }
    .price-item {
        font-size: 1rem;
        padding: 4px 6px;
    }
    .price-item-dots {
        margin: 0 8px;
        border-bottom-width: 1.5px;
    }
    .price-item-val {
        font-size: 0.95rem;
    }
    .category-image-label {
        font-size: 1.2rem;
        padding: 5px 20px;
    }
}

