/* =========================================
   1. General Settings & Variables
   ========================================= */
:root {
    --bg-color: #711426;
    --accent-color: #b4203c;
    --text-dark: #285037;
    --line-green: #59ac78;
    --white: #ffffff;

    --font-fa: 'Damoon', sans-serif;
    --font-en: 'Montserrat', sans-serif;

    --transition-speed: 0.5s;
}

/* =========================================
   2. Fonts
   ========================================= */
@font-face {
    font-family: 'Damoon';
    src: url('fonts/DAMOON-Regular.woff2') format('woff2');
    font-weight: normal;
}
@font-face {
    font-family: 'Damoon';
    src: url('fonts/DAMOON-Bold.woff2') format('woff2');
    font-weight: bold;
}
@font-face {
    font-family: 'Damoon';
    src: url('fonts/DAMOON-Black.woff2') format('woff2');
    font-weight: 900;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
}
@font-face {
    font-family: 'Caveat';
    src: url('fonts/Caveat-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
}

/* =========================================
   3. Reset
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #2b050d;
    font-family: var(--font-fa);
    direction: rtl;
    color: var(--white);
    min-height: 100vh;
}

/* =========================================
   4. App Container
   ========================================= */
.app-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding-bottom: 0;
    scroll-behavior: smooth;
}

/* =========================================
   5. Main Header
   ========================================= */
.main-header {
    padding: 30px 50px;
    padding-bottom: 80px;
    text-align: left;
    position: relative;
}

.header-text {
    margin: -108px 0 0 0;
    font-family: var(--font-en);
}

#cafe-name {
    font-weight: 400;
    font-size: 25px;
}

#main-title {
    font-weight: 500;
    font-size: 46px;
    margin-top: -12px;
}

.logo-img {
    width: 240px;
    margin: 0 25px 0 10px;
    height: auto;
}

/* =========================================
   6. Menu Categories List
   ========================================= */
.menu-container {
    padding: 0 50px 40px 50px;
    display: flex;
    flex-direction: column;
}

.menu-category {
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: z-index 0s;
}

.menu-category.active {
    z-index: 100;
}

.category-header {
    padding: 18px 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition:
        background-color 0.3s,
        transform 0.18s ease,
        filter 0.18s ease;
    background: transparent;
    z-index: 10;
    position: relative;
}

.category-header:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.category-header.is-pressing {
    transform: scale(0.97) translateY(2px);
    filter: brightness(1.12);
}

.cat-title-fa {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0;
}

.cat-title-en {
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 2px;
}

/* =========================================
   7. Accordion / Paper Roll Effect
   ========================================= */
.category-content {
    height: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: height 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.category-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transform: translateY(30px) scale(1.1);
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-category.active .category-pattern {
    opacity: 0.3;
    transform: translateY(0) scale(1);
}

.category-pattern img {
    width: 100%;
    height: auto;
    position: absolute;
    left: -20%;
    top: 5%;
    opacity: 0.8;
}

/* =========================================
   8. Item Cards
   ========================================= */
.items-card {
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 4px;
    margin: 0;
    padding: 25px 20px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.5s ease;
}

.menu-category.shadow-visible .items-card {
    box-shadow: 0 -20px 60px 0 rgba(55, 0, 0, 0.7);
    transition-delay: 0s;
}

.menu-item {
    margin-bottom: 0;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.item-top-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0;
    width: 100%;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    order: -1;
    white-space: nowrap;
}

.price {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    order: 2;
}

.dots {
    flex-grow: 1;
    border-bottom: 1px solid var(--line-green);
    margin: 0 10px;
    position: relative;
    top: -5px;
    order: 1;
}

.item-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
    padding-left: 20px;
    font-weight: 400;
}

/* =========================================
   9. Prices and Labels
   ========================================= */
.price-header-row {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    font-size: 0.7rem;
    margin-bottom: 5px;
    padding-left: 5px;
    width: 100%;
}

.multi-price {
    display: flex;
    gap: 5px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1rem;
    order: 2;
    min-width: 70px;
    justify-content: flex-end;
}

.multi-price .divider {
    color: var(--line-green);
    font-weight: lighter;
}

.price-labels {
    display: flex;
    justify-content: flex-end;
    font-weight: 700;
    gap: 10px;
    font-size: 0.75rem;
    color: #711426;
    margin-bottom: 5px;
    margin-left: -6px;
}

.cat-description {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: -10px;
    opacity: 0.85;
    line-height: 1.2;
    margin-top: 0;
}

.food .menu-item {
    margin-bottom: 10px;
}

.vegan-tag {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--line-green);
    margin-right: 10px;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* =========================================
   10. Splash Screen
   ========================================= */
#splash-screen {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

#splash-screen.hidden {
    transform: translate(-50%, -100%);
}

.splash-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.splash-pattern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: scale(1.1);
}

.splash-content {
    z-index: 10;
    animation: logoFloat 3s ease-in-out infinite;
}

.splash-logo {
    width: 140px;
    height: auto;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.splash-footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.splash-footer p {
    font-size: 0.7rem;
    line-height: 1rem;
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-en);
    max-width: 300px;
    margin: 0 auto;
}

.splash-contact {
    font-family: var(--font-en);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 1px;
    margin: 0;
    direction: ltr;
}

/* =========================================
   11. Footer Decoration + Links
   ========================================= */
.footer-decoration {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    z-index: 0;
    pointer-events: none;
}

.footer-decoration img {
    width: 65%;
    max-width: 400px;
    height: auto;
    transform: translateY(-20%);
    display: block;
    margin-bottom: -150px;
}

.footer-links {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    z-index: 10;
    pointer-events: auto;
    direction: ltr;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
    flex-direction: row;
}

.social-btn:active {
    transform: scale(0.95);
    opacity: 1;
}

.social-icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.social-text {
    position: relative;
    top: 1px;
}

/* =========================================
   12. Special Icons (65, Vegan)
   ========================================= */
.item-icon-65 {
    width: 38px;
    height: auto;
    vertical-align: middle;
    margin: 0;
    position: relative;
    top: -1px;
}

.vegan-icon {
    width: 70px;
    height: auto;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-right: -11px;
    margin-left: 0;
    transform: rotate(-3deg);
    z-index: 1;
}

/* =========================================
   13. Item Appear Animations
   ========================================= */
.menu-item,
.category-pattern,
.price-labels,
.cat-description {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.menu-category.active .menu-item,
.menu-category.active .category-pattern,
.menu-category.active .price-labels,
.menu-category.active .cat-description {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   14. Green Overlay Texture
   ========================================= */
.app-container::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    background-image: url("data:image/svg+xml,%3Csvg...");
    background-repeat: repeat;
    background-size: 160px 160px;
    opacity: 0.7;
    mix-blend-mode: overlay;
}

/* =========================================
   15. Bottle Group
   ========================================= */
.bottle-group {
    position: relative;
}

.bottle-sign-icon {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    height: 120%;
    width: auto;
    top: 46%;
    transform: translateY(-50%);
    left: 48%;
}

/* =========================================
   16. Daily Bake Text
   ========================================= */
.daily-bake-text {
    text-align: center;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-bake-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
    font-weight: 500;
}

.daily-bake-text .highlight {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1rem;
}

/* =========================================
   17. Standup Drinks
   ========================================= */
#standup-drinks .category-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 15px;
}

.header-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.header-promo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    direction: ltr;
    gap: 5px;
}

.promo-text-en {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.3rem;
    color: #e3264a;
    line-height: 1;
    margin-bottom: 3px;
    transform: rotate(0deg);
}

.promo-badge {
    background-color: #518d68;
    color: var(--white);
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 16px;
    border-radius: 4px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
    transform: rotate(0deg);
}

.promo-desc-fa {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0 0 25px 0;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px dashed var(--accent-color);
    padding-bottom: 15px;
}