/* ========================================
   رستوران حنا خانوم - استایل اصلی
   ======================================== */

/* ---------- Variables ---------- */
:root {
    --primary: #556B2F;
    --primary-dark: #3F5224;
    --primary-light: rgba(85, 107, 47, 0.1);
    --bg-cream: #F7F3E9;
    --bg-cream-dark: #E8E4D9;
    --card-white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --success: #28A745;
    --danger: #DC3545;
    --special-gold: #D4AF37;
    --love-pink: #E91E63;
    --love-pink-light: rgba(233, 30, 99, 0.1);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(85, 107, 47, 0.3);
    --shadow-love: 0 10px 40px rgba(233, 30, 99, 0.2);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4BA 50%, #D4AF37 100%);
    --gradient-primary: linear-gradient(135deg, #556B2F 0%, #7A9E3F 100%);
    --gradient-love: linear-gradient(135deg, #E91E63 0%, #F48FB1 100%);
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/photo_2026-07-06_01-41-15.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.55;
    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.5) 70%,
        rgba(0,0,0,0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-logo {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 30px rgba(212, 175, 55, 0.5));
    animation: fadeInDown 1s ease, float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-logo-placeholder {
    font-size: 100px;
    animation: fadeInDown 1s ease, float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 30px rgba(212, 175, 55, 0.4));
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.2s backwards;
    background: linear-gradient(180deg, #FFFFFF 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.4s backwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(233, 30, 99, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(233, 30, 99, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-size: 1.05rem;
    animation: fadeInUp 1s ease 0.6s backwards;
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(233, 30, 99, 0.3);
    transform: translateY(-3px);
}

.hero-badge i {
    color: var(--love-pink);
    font-size: 1.2rem;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 28px;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.hero-scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
}

.hero-row {
    min-height: 75vh;
    min-height: 75dvh;
}

/* ---------- Story Section ---------- */
.story-section {
    padding: 100px 0;
    background: white;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.story-container {
    position: relative;
}

.story-content {
    padding-right: 40px;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--love-pink-light);
    color: var(--love-pink);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.story-badge i {
    font-size: 1rem;
}

.story-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.4;
}

.story-title strong {
    color: var(--love-pink);
}

.story-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 2;
}

.story-signature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 25px;
    background: var(--love-pink-light);
    border-radius: var(--radius-md);
    color: var(--love-pink);
    font-weight: 600;
    font-size: 1rem;
}

.story-signature i {
    font-size: 1.2rem;
}

.story-visual {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-icon-main {
    width: 150px;
    height: 150px;
    background: var(--gradient-love);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: var(--shadow-love);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(233, 30, 99, 0); }
}

.story-float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: floatItem 3s ease-in-out infinite;
}

.story-float-item.float-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.story-float-item.float-2 {
    top: 10%;
    right: 15%;
    animation-delay: 0.5s;
}

.story-float-item.float-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

.story-float-item.float-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes floatItem {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* ---------- Contact Bar ---------- */
.contact-bar {
    background: white;
    padding: 30px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    margin-top: -30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 25px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.contact-item.rubika:hover {
    background: #0099FF;
    border-color: #0099FF;
}

.contact-item.map:hover {
    background: #4285F4;
    border-color: #4285F4;
}

.contact-item i {
    font-size: 1.4rem;
}

/* ---------- Search Section ---------- */
.search-section {
    padding: 60px 0 30px;
    background: var(--bg-cream);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.search-container {
    max-width: 650px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 6px;
    border: 2px solid transparent;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 1.3rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px;
    font-size: 1.05rem;
    font-family: 'Vazirmatn', sans-serif;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.4);
}

/* ---------- Category Filters ---------- */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: white;
    border: 2px solid var(--bg-cream-dark);
    border-radius: 50px;
    color: var(--text-dark);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    flex-shrink: 0;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-pill.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(85, 107, 47, 0.4);
}

.category-pill i {
    font-size: 1.2rem;
}

/* ---------- Menu Section ---------- */
.menu-section {
    padding: 80px 0;
    background: var(--bg-cream);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 25px;
    font-weight: 500;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.section-divider span {
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.section-divider i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* ---------- Menu List ---------- */
.menu-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
}

.menu-list-item {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    animation: fadeIn 0.5s ease backwards;
    border: 1px solid rgba(0,0,0,0.03);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.menu-list-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px) scale(1.01);
    border-color: var(--primary-light);
}

.menu-list-item.unavailable {
    opacity: 0.6;
}

.unavailable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.unavailable-overlay span {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 20px;
    border: 2px solid white;
    border-radius: 50px;
}

.menu-list-image {
    width: 160px;
    min-height: 140px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.menu-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-list-item:hover .menu-list-image img {
    transform: scale(1.1);
}

.menu-list-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-cream-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}

.menu-list-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.menu-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.menu-list-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    transition: var(--transition);
}

.menu-list-item:hover .menu-list-title {
    color: var(--primary);
}

.menu-list-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 50px;
}

.special-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gradient-gold);
    color: #333;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6); }
}

.special-badge-inline i {
    font-size: 0.75rem;
    color: #B8860B;
}

.menu-list-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 10px 0;
    line-height: 1.7;
}

.menu-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--bg-cream);
    flex-wrap: wrap;
    gap: 8px;
}

.menu-list-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
}

.menu-list-price .currency {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.menu-list-item:nth-child(1) { animation-delay: 0.1s; }
.menu-list-item:nth-child(2) { animation-delay: 0.15s; }
.menu-list-item:nth-child(3) { animation-delay: 0.2s; }
.menu-list-item:nth-child(4) { animation-delay: 0.25s; }
.menu-list-item:nth-child(5) { animation-delay: 0.3s; }
.menu-list-item:nth-child(6) { animation-delay: 0.35s; }
.menu-list-item:nth-child(7) { animation-delay: 0.4s; }
.menu-list-item:nth-child(8) { animation-delay: 0.45s; }

/* ---------- Love Section ---------- */
.love-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--love-pink) 0%, #F48FB1 100%);
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.love-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.love-container {
    position: relative;
    z-index: 1;
}

.love-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--love-pink);
    font-size: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: heartBeat 1.5s infinite;
}

.love-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.love-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    line-height: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Empty State ---------- */
.empty-state {
    padding: 80px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 25px;
    opacity: 0.4;
    color: var(--primary);
}

.empty-state h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* ---------- QR Section ---------- */
.qr-section {
    padding: 80px 0;
    background: white;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.qr-container {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.qr-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.qr-container h3 {
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.qr-container p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
}

.qr-code-box {
    display: inline-block;
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.qr-image {
    width: 180px;
    height: 180px;
}

.qr-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ---------- Address Section ---------- */
.address-section {
    padding: 80px 0;
    background: var(--bg-cream);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.address-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}

.address-container h3 {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.address-container h3 i {
    color: var(--primary);
    margin-left: 10px;
}

.address-text {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 2.2;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #4285F4;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
}

.btn-map:hover {
    background: #3367D6;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.5);
}

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    color: white;
    padding: 60px 0 25px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.footer-content h4 {
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.footer-content p {
    color: rgba(255,255,255,0.7);
    line-height: 2.2;
    font-size: 1.05rem;
}

.footer-content i {
    margin-left: 10px;
    color: var(--primary);
}

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 40px 0;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
}

/* ---------- Floating Buttons ---------- */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
    transition: var(--transition);
    position: relative;
}

.floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: ripple 2s infinite;
    opacity: 0;
}

.floating-btn:hover {
    transform: scale(1.15) translateY(-5px);
    color: white;
}

.floating-btn.rubika {
    background: #0099FF;
}

.floating-btn.rubika::before {
    background: rgba(0, 153, 255, 0.3);
}

.floating-btn.phone {
    background: var(--gradient-primary);
}

.floating-btn.phone::before {
    background: rgba(85, 107, 47, 0.3);
}

.floating-btn.map {
    background: #4285F4;
}

.floating-btn.map::before {
    background: rgba(66, 133, 244, 0.3);
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Animations ---------- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---------- Responsive ---------- */

/* تبلت (عمودی) و زیر */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-slogan {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .story-title {
        font-size: 1.8rem;
    }

    .story-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    .story-signature {
        margin: 20px auto 0;
    }

    .footer-content {
        text-align: center;
    }

    .footer-content h4::after {
        right: 50%;
        transform: translateX(50%);
    }
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    .hero-section {
        min-height: 85vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-slogan {
        font-size: 1.1rem;
    }

    .hero-logo-placeholder {
        font-size: 70px;
    }

    .hero-badge {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .hero-scroll-indicator {
        bottom: 25px;
        font-size: 24px;
    }

    .story-section {
        padding: 60px 0;
    }

    .story-visual {
        height: 250px;
    }

    .story-icon-main {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .story-float-item {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-bar {
        margin-top: -20px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        padding: 25px 0;
    }

    .contact-item {
        padding: 14px 18px;
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .search-section {
        padding: 40px 0 20px;
    }

    .category-filters {
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .category-pill {
        padding: 10px 22px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .menu-section {
        padding: 50px 0;
    }

    .menu-list {
        gap: 15px;
    }

    .menu-list-image {
        width: 120px;
        min-height: 120px;
    }

    .menu-list-content {
        padding: 16px 18px;
    }

    .menu-list-title {
        font-size: 1.1rem;
    }

    .menu-list-description {
        font-size: 0.85rem;
        margin: 8px 0;
    }

    .menu-list-price {
        font-size: 1.2rem;
    }

    .love-section {
        padding: 50px 0;
    }

    .love-title {
        font-size: 1.6rem;
    }

    .love-text {
        font-size: 1rem;
    }

    .qr-section {
        padding: 50px 0;
    }

    .qr-container {
        padding: 35px 25px;
    }

    .qr-code-box {
        padding: 20px;
    }

    .qr-image {
        width: 150px;
        height: 150px;
    }

    .address-section {
        padding: 50px 0;
    }

    .address-container {
        padding: 35px 25px;
    }

    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-content h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-content p {
        font-size: 0.95rem;
    }

    .floating-buttons {
        bottom: 20px;
        left: 15px;
        gap: 12px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* موبایل کوچک */
@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-slogan {
        font-size: 0.95rem;
    }

    .hero-logo-placeholder {
        font-size: 60px;
    }

    .hero-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-divider span {
        width: 40px;
    }

    .menu-list-item {
        flex-direction: column;
    }

    .menu-list-image {
        width: 100%;
        min-height: 160px;
        max-height: 180px;
    }

    .menu-list-header {
        flex-direction: column;
        gap: 8px;
    }

    .menu-list-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .special-badge-inline {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .search-box {
        border-radius: var(--radius-md);
    }

    .search-input {
        padding: 14px;
        font-size: 0.95rem;
    }

    .search-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .search-icon {
        padding: 0 15px;
        font-size: 1.1rem;
    }

    .contact-bar {
        padding: 20px 0;
        margin-top: -15px;
    }

    .contact-item {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .contact-item i {
        font-size: 1.2rem;
    }

    .category-pill {
        padding: 8px 18px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .category-pill i {
        font-size: 1rem;
    }

    .menu-section {
        padding: 40px 0;
    }

    .menu-list-content {
        padding: 14px 16px;
    }

    .menu-list-title {
        font-size: 1rem;
    }

    .menu-list-price {
        font-size: 1.1rem;
    }

    .love-section {
        padding: 40px 0;
    }

    .love-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .love-title {
        font-size: 1.3rem;
    }

    .love-text {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .qr-container {
        padding: 25px 20px;
    }

    .qr-container h3 {
        font-size: 1.2rem;
    }

    .qr-container p {
        font-size: 0.9rem;
    }

    .qr-image {
        width: 120px;
        height: 120px;
    }

    .address-container {
        padding: 25px 20px;
    }

    .address-container h3 {
        font-size: 1.2rem;
    }

    .address-text {
        font-size: 1rem;
        line-height: 2;
    }

    .btn-map {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .site-footer {
        padding: 35px 0 15px;
    }

    .footer-content h4 {
        font-size: 1rem;
    }

    .footer-content p {
        font-size: 0.9rem;
    }

    .footer-divider {
        margin: 25px 0;
    }

    .floating-buttons {
        bottom: 15px;
        left: 12px;
        gap: 10px;
    }

    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .empty-state {
        padding: 50px 15px;
    }

    .empty-state i {
        font-size: 3.5rem;
    }

    .empty-state h4 {
        font-size: 1.2rem;
    }
}

/* خیلی کوچک (ساعت هوشمند و غیره) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-slogan {
        font-size: 0.85rem;
    }

    .hero-logo-placeholder {
        font-size: 50px;
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .menu-list-image {
        min-height: 140px;
        max-height: 160px;
    }

    .floating-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .floating-buttons {
        bottom: 12px;
        left: 10px;
        gap: 8px;
    }
}

/* ---------- iOS Safe Area ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
    .floating-buttons {
        bottom: calc(15px + env(safe-area-inset-bottom));
        left: calc(15px + env(safe-area-inset-left));
    }

    .site-footer {
        padding-bottom: calc(25px + env(safe-area-inset-bottom));
    }

    body {
        padding-top: env(safe-area-inset-top);
    }
}

/* ---------- Touch Improvements ---------- */
@media (hover: none) and (pointer: coarse) {
    .category-pill {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .category-pill:active {
        transform: scale(0.95);
    }

    .menu-list-item:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .menu-list-item:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }

    .contact-item:hover {
        transform: none;
    }

    .contact-item:active {
        transform: scale(0.97);
        background: var(--primary);
        color: white;
    }

    .floating-btn:hover {
        transform: none;
    }

    .floating-btn:active {
        transform: scale(0.9);
    }

    .btn-map:hover {
        transform: none;
    }

    .btn-map:active {
        transform: scale(0.97);
    }
}

/* ---------- Smooth Scroll ---------- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Category Scroll Indicator ---------- */
@media (max-width: 768px) {
    .category-filters {
        position: relative;
        padding-bottom: 15px;
    }

    .category-filters::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(to right, var(--bg-cream), transparent 15%, transparent 85%, var(--bg-cream));
        pointer-events: none;
    }
}

/* ---------- Horizontal Scrollbar Hide ---------- */
.category-filters::-webkit-scrollbar {
    display: none;
}

.category-filters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ---------- Focus States for Accessibility ---------- */
.category-pill:focus-visible,
.contact-item:focus-visible,
.floating-btn:focus-visible,
.search-btn:focus-visible,
.btn-map:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* ---------- Print Styles ---------- */
@media print {
    .hero-section,
    .floating-buttons,
    .qr-section,
    .search-section {
        display: none !important;
    }

    .menu-list-item {
        break-inside: avoid;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--primary);
    color: white;
}

/* ---------- Android Fixes ---------- */
/* Fix 100vh on Android Chrome (address bar changes viewport) */
@supports not (height: 100dvh) {
    .hero-section {
        min-height: calc(100vh - 60px);
    }
}

/* Fix Android touch scroll for category filters */
.category-filters {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

/* Fix Android overflow issues with fixed elements */
@supports (-webkit-touch-callout: none) {
    /* iOS only - already handled above */
}

/* Android-specific: prevent horizontal scroll bounce */
html {
    overscroll-behavior-x: none;
}

/* Android Chrome: fix viewport height changes */
@supports (height: 100dvh) {
    .hero-section {
        min-height: 100dvh;
    }
}

/* Fix Android menu item layout */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .menu-list-item {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Android touch improvements */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .menu-list-item {
        touch-action: manipulation;
    }

    .category-filters {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
    }

    .category-pill {
        scroll-snap-align: start;
    }
}

/* Fix Android font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fix Android contact bar stacking */
@media (max-width: 768px) {
    .contact-bar .row {
        display: flex;
        flex-wrap: wrap;
    }

    .contact-bar .col-sm-6,
    .contact-bar .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-bar .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Fix Android section spacing */
@media (max-width: 576px) {
    .hero-section::before {
        background-position: center top;
    }

    .menu-list-image img {
        display: block;
    }

    .menu-list-image-placeholder {
        display: flex;
        width: 100%;
        height: 100%;
    }

    /* Ensure proper stacking on small Android screens */
    .col-md-6,
    .col-md-4,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Fix Android viewport units */
@supports (height: 100svh) {
    .hero-section {
        min-height: 100svh;
    }
}
