/* Dellbar Coffee — Premium Menu Styles */

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

:root {
    --coffee-900: #2b1709;
    --coffee-800: #3d2314;
    --coffee-700: #78350F;
    --coffee-600: #92400E;
    --gold: #FBBF24;
    --gold-soft: #f5d98a;
    --cream: #FEF3C7;
    --sand: #F5EFE6;
    --sand-deep: #EAE0D0;
    --ink: #2b1709;
    --ink-soft: #6b5344;
    --paper: #FFFDF8;
    --line: #E0D5C7;
    --shadow-sm: 0 1px 3px rgba(43,23,9,0.06);
    --shadow-md: 0 6px 24px rgba(43,23,9,0.08);
    --shadow-lg: 0 16px 48px rgba(43,23,9,0.12);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --serif: 'Playfair Display SC', 'Vazirmatn', serif;
    --sans: 'Karla', 'Vazirmatn', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--sand);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 50% 0%, var(--cream) 0%, var(--sand) 55%, var(--sand-deep) 100%);
    overflow: hidden;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 30%, rgba(120,53,15,0.04) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(120,53,15,0.04) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroIn 1.1s var(--ease) both;
}

.hero-badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--coffee-600);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.45rem 1.3rem;
    margin-bottom: 1.8rem;
    background: rgba(255,253,248,0.6);
    backdrop-filter: blur(4px);
}

.hero-brand {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(4rem, 16vw, 9rem);
    line-height: 0.95;
    color: var(--coffee-800);
    letter-spacing: -0.02em;
}

.hero-sub-en {
    font-family: var(--sans);
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 400;
    margin-top: 1.1rem;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.8rem 0 1.2rem;
    color: var(--coffee-600);
}

.hero-divider span {
    width: clamp(40px, 12vw, 80px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-tagline {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--coffee-700);
    font-weight: 400;
    margin-bottom: 2.2rem;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--coffee-600);
    animation: floatY 2.4s ease-in-out infinite;
    z-index: 2;
}

.scroll-label {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-icon { opacity: 0.7; }

.scroll-hint:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 8px;
}

/* ===== CATEGORY NAV ===== */
.category-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(245,239,230,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.category-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.7rem 1.5rem;
    max-width: 860px;
    margin: 0 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-pill {
    flex-shrink: 0;
    padding: 0.5rem 1.1rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s var(--ease);
}

.cat-pill:hover {
    background: rgba(120,53,15,0.06);
    color: var(--coffee-700);
}

.cat-pill.active {
    background: var(--coffee-700);
    color: var(--paper);
    border-color: var(--coffee-700);
}

.cat-pill:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ===== MENU SECTIONS ===== */
.menu-section {
    padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
    max-width: 760px;
    margin: 0 auto;
    scroll-margin-top: 64px;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.menu-section.visible { opacity: 1; transform: translateY(0); }

.menu-section:nth-child(even) { background: var(--sand-deep); }

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 6vw, 2.8rem);
    font-weight: 700;
    color: var(--coffee-800);
    letter-spacing: -0.01em;
}

/* ===== MENU ITEMS ===== */

.section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== MENU ITEMS ===== */
.menu-items { display: flex; flex-direction: column; }

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.2rem;
    padding: 1.1rem 0.5rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s var(--ease), padding 0.25s var(--ease);
    cursor: default;
}

.menu-item:last-child { border-bottom: none; }

.menu-item:hover {
    background: rgba(255,253,248,0.5);
    padding-right: 1rem;
    padding-left: 1rem;
}

.item-info { flex: 1; min-width: 0; }

.item-name-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.item-name {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

.item-desc {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.item-price {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--coffee-700);
    white-space: nowrap;
    flex-shrink: 0;
}

.item-price::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Empty state */
.menu-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: 1.3rem;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: clamp(3rem, 6vw, 4.5rem) 2rem;
    background: var(--coffee-900);
    color: var(--cream);
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.footer-logo {
    color: var(--gold);
    display: flex;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    gap: 0.35rem;
}

.footer-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--paper);
}

.footer-name-en {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-soft);
    font-weight: 500;
}

.footer-address-line {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: rgba(254,243,199,0.7);
    margin-bottom: 1.2rem;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: var(--gold-soft);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s var(--ease);
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(245,217,138,0.25);
    border-radius: 100px;
}

.footer-social a:hover {
    color: var(--paper);
    border-color: var(--gold);
    background: rgba(245,217,138,0.08);
}

.footer-social a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 1.5rem;
}

.footer-credit {
    font-family: var(--serif);
    font-size: 0.8rem;
    color: rgba(254,243,199,0.4);
    letter-spacing: 0.05em;
}

/* ===== ANIMATIONS ===== */
@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero { padding: 1.5rem 1rem; }
    .hero-brand { font-size: clamp(3.5rem, 18vw, 6rem); }
    .category-nav { justify-content: flex-start; padding: 0.6rem 1rem; }
    .cat-pill { padding: 0.55rem 1rem; font-size: 0.82rem; }
}

@media (max-width: 600px) {
    .menu-item {
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
        padding: 1rem 0.3rem;
    }
    .item-price { align-self: flex-start; font-size: 1rem; }
    .item-price::before { margin-left: 0; margin-right: 0.5rem; }
    .menu-section { padding: 2.5rem 1.2rem; scroll-margin-top: 58px; }
    .section-head { margin-bottom: 2rem; }
    .footer-social { flex-wrap: wrap; gap: 0.8rem; }
}

@media (max-width: 380px) {
    .hero-badge { font-size: 0.7rem; padding: 0.4rem 1rem; }
    .hero-tagline { font-size: 1rem; }
    .item-name { font-size: 1rem; }
}

/* Focus visibility global */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
