@import "../../fonts/Cairo/stylesheet.css";

* {
    font-family: Cairo, sans-serif;
}

body {
    background-repeat: no-repeat;
}

:root {
    --brown: #8B5E3C;
    --dark: #3d2b1a;
    --gold: #C8962E;
    --cream: #fdf6ee;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px; /* Adjust the value for your needs */
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
}

/* ══════════════ NAV ══════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .4s, box-shadow .4s;
}

nav.scrolled {
    background: rgba(20, 10, 4, .92);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

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

.brand-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.brand-circle .b-en {
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.brand-circle .b-ar {
    font-size: .68rem;
    font-weight: 700;
    color: var(--gold);
}

.brand-text {
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

.brand-text span {
    color: var(--gold);
}

/* links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: all .25s;
}

.nav-links a:hover {
    color: #fff;
    border-color: rgba(200, 150, 46, .5);
    background: rgba(200, 150, 46, .12);
}

.nav-links .cta-link {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    font-weight: 700;
}

.nav-links .cta-link:hover {
    background: #b8841e;
    border-color: #b8841e;
}

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(20, 10, 4, .97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    transition: color .2s;
}

.mobile-menu a:hover {
    color: var(--gold);
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* ══════════════ HERO ══════════════ */
#hero {
    position: relative;
    height: 100svh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(15, 7, 2, .55) 0%, rgba(61, 43, 26, .82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    animation: fadeUp .9s ease both;
}

.hero-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    box-shadow: 0 0 50px rgba(200, 150, 46, .45);
}

.hero-logo img {
    width: 100%;
}

.hero-logo .en {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
}

.hero-logo .ar {
    font-size: 21px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 2px;
}

.hero-content h1 {
    font-size: clamp(1.9rem, 5vw, 3.3rem);
    font-weight: 900;
}

.hero-content p {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, .78);
    margin-top: 10px;
}

.hero-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 38px;
    border-radius: 50px;
    background: var(--gold);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(200, 150, 46, .55);
    transition: transform .2s, box-shadow .2s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 150, 46, .65);
}

/* ══════════════ MENU ══════════════ */
#menu {
    padding: 70px 16px;
    background: var(--cream);
}

.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 900;
    color: var(--dark);
}

.section-title .line {
    width: 56px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns:repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 420px) {
    .categories-grid {
        grid-template-columns:1fr;
    }
}

.cat-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    cursor: pointer;
    transition: transform .28s, box-shadow .28s;
    position: relative;
    display: block;
    text-decoration: none;
}

.cat-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(139, 94, 60, .22);
}

.cat-img-wrap {
    overflow: hidden;
}

.cat-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.cat-card:hover img {
    transform: scale(1.07);
}

.cat-body {
    padding: 14px 16px 18px;
    text-align: center;
}

.cat-body h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
}

.cat-body p {
    font-size: .8rem;
    color: #aaa;
    margin-top: 4px;
}

.cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: var(--gold);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ══════════════ ABOUT ══════════════ */
#about {
    padding: 70px 16px;
    background: var(--dark);
    color: #fff;
}

.about-wrap {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.about-wrap h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 14px;
}

.about-wrap p {
    line-height: 2;
    font-size: clamp(.95rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, .82);
}

/* ══════════════ FOOTER ══════════════ */
footer {
    background:#1a0d05; color:rgba(255,255,255,.55);
    font-size:.88rem;
    padding-bottom: 0;
}
.footer-top {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px; max-width:1000px; margin:0 auto;
    padding:50px 24px 36px;
    border-bottom:1px solid rgba(255,255,255,.08);
}
@media(max-width:640px){ .footer-top{ grid-template-columns:1fr; gap:28px; text-align:center; } }
.footer-col h4 { color:#fff; font-size:1rem; font-weight:800; margin-bottom:14px; }
.footer-col h4 span { color:var(--gold); }
.footer-col p { line-height:1.85; color:rgba(255,255,255,.6); font-size:.88rem; }

.contact-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.contact-list li { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.65); font-size:.88rem; }
@media(max-width:640px){ .contact-list li{ justify-content:center; } }
.contact-list a { color:rgba(255,255,255,.65); text-decoration:none; transition:color .2s; }
.contact-list a:hover { color:var(--gold); }
.c-icon {
    width:32px; height:32px; border-radius:8px;
    background:rgba(255,255,255,.07); display:flex; align-items:center; justify-content:center;
    flex-shrink:0; font-size:.95rem;
}

.social-row { display:flex; gap:10px; flex-wrap:wrap; }
@media(max-width:640px){ .social-row{ justify-content:center; } }
.soc-btn {
    display:flex; align-items:center; gap:8px;
    padding:8px 14px; border-radius:10px;
    background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1);
    color:rgba(255,255,255,.75); text-decoration:none; font-size:.83rem; font-weight:600;
    transition:all .25s;
}
.soc-btn:hover { background:var(--gold); border-color:var(--gold); color:#fff; }
.soc-btn svg { width:16px; height:16px; fill:currentColor; flex-shrink:0; }

.footer-bottom {
    text-align:center; padding:18px 16px;
    color:rgba(255,255,255,.35); font-size:.82rem;
}
.footer-bottom span { color:var(--gold); }


/* ══════════════ MODAL ══════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(5px);
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

@media (min-width: 600px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 720px;
    max-height: 88svh;
    overflow-y: auto;
    animation: slideUp .3s ease;
}

@media (min-width: 600px) {
    .modal {
        border-radius: 24px;
        max-height: 85vh;
    }
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--dark);
    color: #fff;
    padding: 18px 22px;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 800;
}

.modal-close {
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, .3);
}

.modal-body {
    padding: 20px;
}

.items-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

@media (max-width: 380px) {
    .items-grid {
        grid-template-columns:repeat(2, 1fr);
    }
}

.item-card {
    border: 1px solid #f0e8e0;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    transition: box-shadow .2s;
}

.item-card:hover {
    box-shadow: 0 4px 16px rgba(139, 94, 60, .15);
}

.item-emoji {
    font-size: 2.2rem;
}

.item-name {
    font-weight: 700;
    font-size: .9rem;
    margin-top: 7px;
    color: var(--dark);
}

.item-desc {
    font-size: .75rem;
    color: #bbb;
    margin-top: 3px;
}

.item-price {
    font-weight: 900;
    color: var(--gold);
    font-size: .95rem;
    margin-top: 7px;
}

/* ══════════════ ANIMS ══════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}
