/* 
 * Aden Yemeni Restaurant - Main Stylesheet
 * Luxury / Cinematic / Authentic
 */

/* =========================================
   1. TOKENS & RESET
   ========================================= */
:root {
    /* Colors - STRICT TOKENS */
    --color-bg-olive: #665E3A;
    --color-gold-main: #D6AD45;
    --color-gold-highlight: #FBEEA8;
    --color-gold-shadow: #74561E;
    --color-emerald-deep: #004225;

    --color-text-dark: #111111;
    --color-text-light: #F5F5F5;
    --color-text-muted: #e0e0e0;

    --color-bg-dark: #2E2617;
    /* Approximated dark fill */

    /* Fonts */
    --font-en-header: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    --font-en-body: 'Myriad Pro', 'Segoe UI', system-ui, sans-serif;

    --font-ar-header: 'Hacen Saudi Arabia', 'Amiri', serif;
    --font-ar-body: 'Hacen Liner', 'Amiri', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;

    /* Layout */
    --nav-height: 80px;
    --container-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-olive);
    color: var(--color-text-light);
    font-family: var(--font-en-body);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. TYPOGRAPHY UTILITIES
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-en-header);
    font-weight: 700;
    color: var(--color-gold-main);
}

.ar-text,
.logo-title-ar,
.hero-logo-ar,
.body-ar,
.dish-desc-ar {
    font-family: var(--font-ar-body);
    direction: rt;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold-main);
}

.body-en {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.body-ar {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* =========================================
   3. COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold {
    background: var(--color-gold-main);
    color: var(--color-text-dark);
    border: 1px solid var(--color-gold-main);
    box-shadow: 0 4px 15px rgba(214, 173, 69, 0.3);
}

.btn-gold:hover {
    background: var(--color-gold-highlight);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 173, 69, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--color-gold-main);
    border: 1px solid var(--color-gold-main);
}

.btn-ghost:hover {
    background: rgba(214, 173, 69, 0.1);
    color: var(--color-gold-highlight);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
#global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

#global-nav.scrolled {
    background-color: rgba(102, 94, 58, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--spacing-sm);
}

.logo-container {
    display: flex;
    /* Hidden initially or transparent placeholder */
    align-items: center;
    gap: 10px;
    opacity: 0;
    /* Starts invisible, GSAP reveals it */
    transform: translateX(-20px);
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text-reveal {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title-en {
    font-family: var(--font-en-header);
    font-weight: bold;
    color: var(--color-gold-main);
    font-size: 1.2rem;
}

.logo-title-ar {
    font-family: var(--font-ar-header);
    color: var(--color-gold-main);
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold-main);
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: var(--color-gold-main);
    display: block;
}

/* =========================================
   5. HERO - SIGNATURE PLATE
   ========================================= */
/* =========================================
   5. HERO - PREMIUM SIGNATURE PLATE (2.5D)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-olive);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 30% 50%, #745f2a 0%, var(--color-bg-olive) 60%, #1a1a10 100%);
    opacity: 0;
    /* Animated in by JS */
}

.hero__inner {
    position: relative;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    padding: 0 var(--spacing-sm);
    z-index: 10;
}

/* --- The Scene (Left) --- */
.hero__scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* For 3D feel */
    pointer-events: none;
    /* Allow clicks through unless on interactive parts */
}

/* Scene Layers - Z-Index Stack */
.scene__shadow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: scaleY(0.4) translateY(280px);
    /* Flat shadow on "table" */
    filter: blur(20px);
    z-index: 5;
    opacity: 0.6;
}

.scene__plate {
    position: absolute;
    width: 480px;
    /* Adjust based on asset */
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    /* Initial state for anim */
    transform: scale(0.96) translateY(20px);
}

.scene__spoon {
    position: absolute;
    width: 160px;
    /* Adjust */
    height: auto;
    top: 25%;
    right: 15%;
    /* Float to the right of plate */
    z-index: 20;
    filter: drop-shadow(5px 15px 15px rgba(0, 0, 0, 0.25));
    transform-origin: top right;
}

.scene__broth {
    position: absolute;
    width: 100px;
    /* Width of the stream */
    height: 300px;
    top: 35%;
    left: 45%;
    /* Connect spoon to plate roughly */
    z-index: 15;
    /* Above plain plate, below spoon handle? Or above all? */
    overflow: hidden;
    opacity: 0;
    /* Fade in last */
    /* Use mask-image for stream shape if PNG not available, 
       but here we assume .scene__broth contains the animation div */
}

/* Simple placeholder broth stream style if no image */
.broth-stream-inner {
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom, #8E9B3A, #B5C15A, #8E9B3A);
    position: absolute;
    top: 0;
    left: 0;
}

.scene__sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    z-index: 30;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.5;
}

/* --- Content (Right) --- */
.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 40;
    position: relative;
    padding-left: var(--spacing-md);
}

/* Reuse existing typography but ensure scoping */
.hero__content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero__content h2 {
    font-size: 2.2rem;
    color: var(--color-gold-highlight);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}


/* --- Mobile --- */
@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        grid-template-rows: 1.2fr 0.8fr;
        text-align: center;
    }

    .hero__scene {
        transform: scale(0.8);
    }

    .hero__content {
        align-items: center;
        padding-left: 0;
        justify-content: flex-start;
    }

    .hero__content h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   6. ABOUT (STORY)
   ========================================= */
.split-layout {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.text-column,
.image-column {
    flex: 1;
}

.golden-frame {
    position: relative;
    padding: 10px;
    border: 1px solid var(--color-gold-main);
    box-shadow: 20px 20px 0 rgba(214, 173, 69, 0.1);
}

.interior-image-placeholder {
    width: 100%;
    height: 400px;
    background: #333;
    background-image: linear-gradient(45deg, #2E2617, #3E321E);
    /* In real implementation, this would contain an <img> */
}

/* =========================================
   7. CULTURE
   ========================================= */
.dark-theme {
    background-color: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.bg-pattern-parallax {
    position: absolute;
    inset: -50px;
    z-index: 0;
    background-image: radial-gradient(var(--color-gold-shadow) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
}

.culture-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.underline-grow {
    display: inline-block;
    position: relative;
}

.underline-grow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-main);
    transition: width 0.8s ease;
}

.underline-grow.in-view::after {
    width: 100%;
}

/* =========================================
   8. MENU
   ========================================= */
.menu-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-lg);
}

.category-list {
    position: sticky;
    top: 120px;
}

.cat-pill {
    padding: 12px 20px;
    margin-bottom: 8px;
    border: 1px solid var(--color-gold-shadow);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    color: var(--color-text-muted);
}

.cat-pill:hover {
    border-color: var(--color-gold-main);
    color: var(--color-gold-main);
}

.cat-pill.active {
    background: var(--color-gold-main);
    color: var(--color-text-dark);
    border-color: var(--color-gold-main);
}

.current-category-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(214, 173, 69, 0.2);
    padding-bottom: 10px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* Menu Card Updates */
.menu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(214, 173, 69, 0.1);
    padding: var(--spacing-md);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.dish-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.2;
}

.dish-name-ar {
    font-size: 1.1rem;
    color: var(--color-gold-main);
    font-family: var(--font-ar-body);
    margin-bottom: 10px;
    text-align: right;
}

.dish-price {
    font-family: var(--font-en-body);
    font-weight: bold;
    color: var(--color-gold-highlight);
    background: rgba(214, 173, 69, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 10px;
}

.dish-desc-en {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 4px;
}

.dish-desc-ar {
    font-size: 0.95rem;
    color: #888;
    direction: rtl;
}

/* =========================================
   9. TEASERS
   ========================================= */
.bg-warm-dark {
    background-color: #262014;
}

.teaser-grid {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.teaser-item {
    flex: 1;
    padding: 20px;
    border-right: 1px solid rgba(214, 173, 69, 0.1);
    text-align: center;
}

.teaser-item:last-child {
    border: none;
}

.teaser-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-gold-highlight);
}

.teaser-item p {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

/* =========================================
   10. BOOKING
   ========================================= */
.booking-bg {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../assets/interior-bg.jpg');
    /* Placeholder */
    background-size: cover;
    background-position: center;
}

.align-center {
    align-items: center;
}

.booking-text {
    color: white;
}

.section-subtitle {
    font-family: var(--font-en-body);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--color-gold-highlight);
    margin-bottom: 1rem;
}

.glass-panel {
    background: rgba(46, 38, 23, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(214, 173, 69, 0.3);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-gold-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(214, 173, 69, 0.2);
    padding: 12px;
    color: white;
    font-family: var(--font-en-body);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-gold-main);
    background: rgba(0, 0, 0, 0.5);
}

.full-width {
    width: 100%;
}

/* =========================================
   11. FOOTER & CONTACT
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-md);
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1rem;
    border-left: 3px solid var(--color-gold-main);
    padding-left: 10px;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    color: var(--color-gold-main);
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    padding-left: 5px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.hours-table tr:last-child td {
    border: none;
}

.map-card {
    background: #222;
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
}

.map-card:hover {
    background: #2a2a2a;
    border-color: var(--color-gold-main);
}

.pin-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.main-footer {
    background: linear-gradient(to top, #1a1a1a, var(--color-bg-olive));
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 5px solid var(--color-gold-main);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-ar {
    font-family: var(--font-ar-header);
    font-size: 3rem;
    color: var(--color-gold-main);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.social-circles {
    display: flex;
    gap: 15px;
}

.sc-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-gold-main);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold-main);
    font-weight: bold;
    transition: 0.3s;
}

.sc-link:hover {
    background: var(--color-gold-main);
    color: black;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* =========================================
   12. MOBILE RESPONSIVENESS
   ========================================= */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-block {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 550px;
        text-align: center;
    }

    /* Push text below plate */
    .hero-plate-container {
        width: 100%;
        top: 40%;
        transform: translate(-50%, -50%) scale(0.8);
    }

    .split-layout {
        flex-direction: column;
    }

    .menu-layout {
        display: block;
    }

    .category-list {
        display: flex;
        overflow-x: auto;
        position: relative;
        top: 0;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .cat-pill {
        white-space: nowrap;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .teaser-grid {
        flex-direction: column;
    }

    .teaser-item {
        border-right: none;
        border-bottom: 1px solid rgba(214, 173, 69, 0.1);
        padding: 30px 0;
    }
}

@media (max-width: 600px) {
    :root {
        --spacing-lg: 40px;
    }

    .desktop-only {
        display: none;
    }

    /* Reveal Mobile Nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #1a1a1a;
        border-top: 1px solid var(--color-gold-shadow);
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.7rem;
        color: #888;
    }

    .nav-item.active,
    .nav-item:hover {
        color: var(--color-gold-main);
    }

    .icon {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    /* Adjust Hero for Mobile */
    .hero-section {
        align-items: flex-start;
    }

    .hero-plate-container {
        top: 35%;
        transform: translate(-50%, -50%) scale(0.65);
    }

    .hero-text-block {
        margin-top: 450px;
        padding: 0 20px;
    }

    .hero-center-logo {
        top: -25%;
    }

    .hero-logo-ar {
        font-size: 4rem;
    }

    .hero-title-en {
        font-size: 2.2rem;
    }

    /* Footer tweaks */
    .main-footer {
        padding-bottom: 80px;
    }

    /* Space for bottom nav */
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}