@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #3d503e;
    /* Serene forest sage */
    --color-primary-dark: #2a382b;
    /* Deep dark olive */
    --color-primary-light: #eef3ed;
    /* Light sage accent */
    --color-accent: #c4996c;
    /* Warm latte gold */
    --color-background: #faf8f5;
    /* Serene cream paper background */
    --color-surface: #ffffff;

    --color-text: #2a2e29;
    /* Charcoal text with olive tint */
    --color-text-light: #6a7468;
    /* Sage grey for descriptions */
    --color-border: #d4ded3;
    /* Soft border line */

    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;

    --transition-fast: 150ms ease;
    --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    --content-width: 900px;
}

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

html {
    scroll-behavior: smooth;
    /* Adjust for floating navigation pill + margin */
    scroll-padding-top: 78px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base custom interactive styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Organic Background Details - Pure CSS vector decoration */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(61, 80, 62, 0.02) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(196, 153, 108, 0.03) 0%,
            transparent 50%
        );
    pointer-events: none;
}

/* Hero Header */
.hero {
    padding: clamp(1.25rem, 2.5vw, 2rem) 1.5rem clamp(0.5rem, 1.5vw, 1rem);
    text-align: center;
}

.hero__content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    line-height: 1.1;
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__arabic-title {
    max-width: clamp(130px, 28vw, 180px);
    width: 100%;
    height: auto;
    margin: 0.2rem auto 0.1rem;
    display: block;
    animation: fadeIn 1s ease-out;
}

.hero__subtitle {
    margin-top: 0.2rem;
    margin-bottom: 0;
    font-size: clamp(0.75rem, 1.8vw, 0.925rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 500;
    animation: fadeIn 1.2s ease-out;
}

.hero__divider {
    margin-top: 0.1rem;
    width: clamp(160px, 45vw, 220px);
    max-width: 100%;
    color: var(--color-accent);
    animation: scaleUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__divider-svg {
    width: 100%;
    height: auto;
}

/* Floating Glass Navigation Pill */
.menu-nav {
    position: sticky;
    top: 20px;
    z-index: 100;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.menu-nav__list {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: var(--radius-lg);
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(61, 80, 62, 0.08);
    box-shadow:
        0 12px 30px rgba(42, 46, 41, 0.04),
        0 4px 10px rgba(42, 46, 41, 0.02);
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.menu-nav__list::-webkit-scrollbar {
    display: none;
}

.menu-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--color-primary);
    transition: all var(--transition-smooth);
}

.menu-nav__link:hover {
    background: rgba(61, 80, 62, 0.05);
    color: var(--color-primary-dark);
}

.menu-nav__link.active {
    background: var(--color-primary);
    color: var(--color-background);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(61, 80, 62, 0.15);
}

.menu-nav__icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-nav__icon svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    display: block;
    overflow: visible;
}

/* Main Menu Layout */
.menu {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading {
    text-align: center;
    color: var(--color-text-light);
    padding: 5rem 0;
    font-weight: 500;
}

/* Menu Sections */
.menu-section {
    padding: 0.75rem 0 0.25rem;
}

.menu-section__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.95rem;
    width: 100%;
}

.menu-section__icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    flex-shrink: 0;
    border: 1px solid rgba(61, 80, 62, 0.06);
    box-shadow: 0 4px 10px rgba(61, 80, 62, 0.03);
    color: var(--color-primary-dark);
}

.menu-section__icon-container svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    stroke: currentColor;
    display: block;
    overflow: visible;
}

.menu-section__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.menu-section__line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--color-border);
}

.menu-items {
    display: grid;
    gap: 0.8rem;
}

/* Menu Item Design */
.menu-item {
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth);
}

.menu-item:hover {
    transform: translateX(4px);
}

.menu-item__header {
    display: flex;
    align-items: baseline;
    width: 100%;
}

.menu-item__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.menu-item__dots {
    flex-grow: 1;
    border-bottom: 1.5px dotted var(--color-border);
    margin: 0 0.5rem;
    height: 1px;
    align-self: flex-end;
    position: relative;
    top: -4px;
    min-width: 15px;
}

.menu-item__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.menu-item__ingredients {
    margin: 0.25rem 0 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.4;
}

.menu-item__ingredients:empty {
    display: none;
}

.menu-item__description {
    margin: 0.2rem 0 0;
    color: var(--color-text-light);
    font-size: 0.88rem;
    line-height: 1.4;
}

.menu-item__description:empty {
    display: none;
}

/* Search Bar Container */
.search-container {
    max-width: var(--content-width);
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0.6rem 1.2rem;
    box-shadow: 0 4px 15px rgba(61, 80, 62, 0.04);
    transition: all var(--transition-smooth);
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(61, 80, 62, 0.12);
    background: #ffffff;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
}

.search-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.7;
}

.search-clear {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.search-clear:hover {
    color: var(--color-primary-dark);
}

.search-results-info {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-light);
}

.no-results p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.clear-search-btn {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.clear-search-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* Disclaimer Pill */
.disclaimer-container {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1.5rem 1rem;
}

.disclaimer-pill {
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1.75rem;
    font-size: 0.85rem;
    color: var(--color-primary-dark);
    font-weight: 500;
    letter-spacing: 0.05em;
    display: inline-block;
    margin: 0;
    background: rgba(250, 248, 245, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

/* Footer with top divider & minimal icons */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 4rem;
    max-width: var(--content-width);
    margin: 0 auto;
}

.footer__divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin-bottom: 2rem;
    opacity: 0.7;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2rem;
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.footer__link:hover .footer__icon {
    transform: scale(1.15);
}

.promo-card {
    display: none;
    position: relative;
    max-width: 420px;
    margin: -25px auto 5px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    text-align: left;
}

/* Close / Dismiss Button Styles */
.promo-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition:
        color 0.2s,
        background-color 0.2s;
}

.promo-close-btn:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.promo-tag {
    background: #f0fdf4;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
}

.promo-header h2 {
    margin: 10px 0 4px;
    font-size: 1.5rem;
    color: #111827;
}

.promo-sub {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

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

.promo-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #374151;
}

.promo-steps a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.promo-steps a:hover {
    text-decoration: underline;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Google Analytics Consent Notice Styles */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222222;
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    box-sizing: border-box;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 250px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    background-color: #ffffff;
    color: #222222;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cookie-btn:hover {
    background-color: #e0e0e0;
}

/* Keyframe Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: itemFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes itemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 640px) {
    .menu {
        padding: 1rem 1.25rem 1rem;
    }

    .hero {
        padding: 1rem 1rem 0.5rem;
    }

    .menu-nav {
        top: 15px;
        justify-content: flex-start;
        padding: 0 0.75rem;
    }

    .menu-nav__list {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .menu-nav__link {
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
        gap: 0.35rem;
    }

    .menu-item__name {
        font-size: 0.98rem;
        white-space: normal;
        line-height: 1.3;
    }

    .menu-item__price {
        font-size: 0.98rem;
    }

    .menu-item__dots {
        margin: 0 0.4rem;
    }

    .menu-section__header {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .menu-item__header {
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .menu-item__dots {
        display: block;
        min-width: 12px;
        margin: 0 0.35rem;
    }

    .menu-item__price {
        font-size: 0.95rem;
    }

    .menu-item__name {
        font-size: 0.95rem;
    }

    .menu-items {
        gap: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}
