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

/* ---------- 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;
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    max-width: 100%;
}

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

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

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-new.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;
    width: 100%;
}

.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: clamp(1.5rem, 5vw, 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;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-slogan {
    font-size: clamp(0.85rem, 3vw, 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);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(233, 30, 99, 0.2);
    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;
}

.story-container {
    position: relative;
    overflow: hidden;
}

.story-content {
    padding-right: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.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;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.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;
    flex-shrink: 0;
}

@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;
}

.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;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: 100%;
}

.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;
    flex-shrink: 0;
}

.contact-item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.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;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 16px;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    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;
    flex-shrink: 0;
}

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

/* ---------- Category Filters ---------- */
.category-section {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-cream);
    padding: 15px 0;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.category-section.stuck {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.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: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.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);
}

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

.section-title {
    font-size: clamp(1.3rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-light);
    margin-top: 25px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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;
}

.menu-list-item {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.5s ease backwards;
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
}

.menu-list-item:hover {
    box-shadow: var(--shadow-lg);
    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;
    z-index: 2;
}

.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;
}

.menu-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-list-image-placeholder {
    width: 100%;
    height: 140px;
    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);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.availability-badge.available {
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
}

.availability-badge.unavailable {
    color: var(--danger);
    background: rgba(220, 53, 69, 0.1);
}

.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;
}

.love-container {
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

.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-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: clamp(1.3rem, 4vw, 2rem);
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.love-text {
    font-size: clamp(0.9rem, 2.5vw, 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;
}

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

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

.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 p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

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

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

.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;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.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);
    white-space: nowrap;
}

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

/* ---------- Feedback Section ---------- */
.feedback-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.feedback-list {
    max-width: 700px;
    margin: 0 auto 40px;
}

.feedback-card {
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.4s ease backwards;
    border: 1px solid rgba(0,0,0,0.03);
}

.feedback-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feedback-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
    font-size: 0.95rem;
}

.feedback-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.feedback-card-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-card-name i {
    color: var(--primary);
    font-size: 1.1rem;
}

.feedback-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feedback-card-stars {
    color: var(--special-gold);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.feedback-card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Feedback Form */
.feedback-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}

.feedback-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.feedback-form-title i {
    color: var(--primary);
}

.feedback-form-row {
    margin-bottom: 16px;
}

.feedback-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--bg-cream-dark);
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    background: white;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.feedback-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.feedback-textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--bg-cream-dark);
    border-radius: var(--radius-md);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    background: white;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.feedback-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.feedback-rating-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.feedback-rating {
    display: flex;
    gap: 8px;
    direction: ltr;
    justify-content: center;
}

.feedback-rating i {
    font-size: 2rem;
    color: var(--bg-cream-dark);
    cursor: pointer;
    transition: var(--transition);
}

.feedback-rating i.active,
.feedback-rating i:hover,
.feedback-rating i.hover {
    color: var(--special-gold);
    transform: scale(1.15);
}

.feedback-submit-btn {
    width: 100%;
    padding: 14px 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.3);
}

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(85, 107, 47, 0.4);
}

.feedback-success {
    text-align: center;
    padding: 30px;
}

.feedback-success i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 15px;
    display: block;
}

.feedback-success p {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    color: white;
    padding: 60px 0 25px;
    padding-bottom: calc(25px + env(safe-area-inset-bottom));
}

.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;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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;
}

.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;
    flex-shrink: 0;
}

.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 STYLES
   Mobile-First Media Queries
   ============================================= */

/* ---------- Small phones: 320px - 375px ---------- */
@media (max-width: 375px) {
    .hero-section {
        min-height: 70vh;
        min-height: 70dvh;
    }

    .hero-content {
        padding: 25px 12px;
    }

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

    .hero-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
    }

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

    .hero-scroll-indicator {
        bottom: 20px;
        font-size: 22px;
    }

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

    .section-title::after {
        width: 50px;
    }

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

    .section-divider i {
        font-size: 1.2rem;
    }

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

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

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

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

    .story-text {
        font-size: 0.9rem;
    }

    .story-signature {
        margin: 15px auto 0;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .story-visual {
        height: 200px;
    }

    .story-icon-main {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .story-float-item {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

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

    .contact-item {
        padding: 12px 14px;
        font-size: 0.8rem;
        gap: 8px;
    }

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

    .search-section {
        padding: 30px 0 15px;
    }

    .search-container {
        padding: 0 10px;
    }

    .search-box {
        padding: 4px;
    }

    .search-icon {
        padding: 0 10px;
        font-size: 1rem;
    }

    .search-input {
        padding: 12px;
        font-size: 16px;
    }

    .search-btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .category-section {
        padding: 8px 0;
    }

    .category-filters {
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding: 0 12px 12px;

        scroll-snap-type: x proximity;
        justify-content: flex-start;
    }

    .category-pill {
        padding: 8px 16px;
        font-size: 0.8rem;
        gap: 5px;
    }

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

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

    .menu-list {
        gap: 12px;
        padding: 0 10px;
    }

    .menu-list-item {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

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

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

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

    .menu-list-description {
        font-size: 0.8rem;
        margin: 6px 0;
        line-height: 1.6;
    }

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

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

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

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

    .special-badge-inline {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

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

    .love-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

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

    .love-text {
        font-size: 0.85rem;
        line-height: 1.7;
    }

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

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

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

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

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

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

    .qr-text {
        font-size: 0.8rem;
    }

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

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

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

    .address-text {
        font-size: 0.9rem;
        line-height: 1.9;
    }

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

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

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

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

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

    .footer-content p {
        font-size: 0.85rem;
        line-height: 2;
    }

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

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

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

    .admin-toggle {
        bottom: 72px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .admin-toggle i {
        font-size: 0.9rem;
    }

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

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

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

    .feedback-section {
        padding: 35px 0;
    }

    .feedback-list {
        margin: 0 10px 30px;
    }

    .feedback-card {
        padding: 18px;
        border-radius: var(--radius-md);
        margin-bottom: 12px;
    }

    .feedback-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }

    .feedback-card-name {
        font-size: 0.9rem;
    }

    .feedback-card-name i {
        font-size: 1rem;
    }

    .feedback-card-date {
        font-size: 0.75rem;
    }

    .feedback-card-stars {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .feedback-card-text {
        font-size: 0.88rem;
        line-height: 1.8;
    }

    .feedback-form-container {
        padding: 22px 16px;
        margin: 0 10px;
        border-radius: var(--radius-md);
    }

    .feedback-form-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .feedback-form-row {
        margin-bottom: 14px;
    }

    .feedback-input,
    .feedback-textarea {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: var(--radius-md);
    }

    .feedback-textarea {
        min-height: 80px;
    }

    .feedback-rating {
        gap: 6px;
    }

    .feedback-rating i {
        font-size: 1.6rem;
    }

    .feedback-submit-btn {
        padding: 13px 20px;
        font-size: 0.95rem;
    }

    .admin-overlay-content {
        padding: 20px;
        width: 95%;
    }

    .admin-overlay-header h3 {
        font-size: 1rem;
    }

    .admin-pending-card {
        padding: 15px;
    }

    .admin-pending-actions {
        flex-direction: column;
        gap: 8px;
    }

    .admin-btn {
        width: 100%;
        padding: 10px;
    }

    .admin-modal-content {
        padding: 25px 20px;
        width: 92%;
    }
}

/* ---------- Regular phones: 376px - 480px ---------- */
@media (min-width: 376px) and (max-width: 480px) {
    .hero-section {
        min-height: 75vh;
        min-height: 75dvh;
    }

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

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

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

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

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

    .section-title::after {
        width: 60px;
    }

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

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

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

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

    .story-text {
        font-size: 0.95rem;
    }

    .story-signature {
        margin: 15px auto 0;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .story-visual {
        height: 220px;
    }

    .story-icon-main {
        width: 110px;
        height: 110px;
        font-size: 2.8rem;
    }

    .story-float-item {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

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

    .contact-item {
        padding: 13px 16px;
        font-size: 0.85rem;
    }

    .search-section {
        padding: 35px 0 18px;
    }

    .search-container {
        padding: 0 12px;
    }

    .search-box {
        padding: 5px;
    }

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

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

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

    .category-section {
        padding: 10px 0;
    }

    .category-filters {
        gap: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding: 0 12px 10px;

        scroll-snap-type: x proximity;
        justify-content: flex-start;
    }

    .category-pill {
        padding: 9px 20px;
        font-size: 0.85rem;
        gap: 7px;
    }

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

    .menu-list {
        gap: 14px;
        padding: 0 12px;
    }

    .menu-list-item {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

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

    .menu-list-content {
        padding: 13px 15px;
    }

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

    .menu-list-description {
        font-size: 0.83rem;
        margin: 7px 0;
    }

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

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

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

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

    .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.88rem;
        line-height: 1.8;
    }

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

    .qr-container {
        padding: 28px 18px;
    }

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

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

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

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

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

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

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

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

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

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

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

    .footer-content h4 {
        font-size: 1rem;
        margin-bottom: 18px;
    }

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

    .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;
    }

    .admin-toggle {
        bottom: 78px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

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

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

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

    .feedback-list {
        margin: 0 12px 30px;
    }

    .feedback-card {
        padding: 20px;
    }

    .feedback-form-container {
        padding: 24px 18px;
        margin: 0 12px;
    }

    .feedback-form-title {
        font-size: 1.05rem;
    }

    .feedback-input,
    .feedback-textarea {
        font-size: 16px;
    }

    .admin-overlay-content {
        width: 93%;
        padding: 25px;
    }

    .admin-modal-content {
        width: 90%;
    }
}

/* ---------- Tablet: 481px - 768px ---------- */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-section {
        min-height: 85vh;
        min-height: 85dvh;
    }

    .hero-content {
        padding: 35px 20px;
    }

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

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

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

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

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

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

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

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

    .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;
        padding: 22px 0;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .contact-item {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

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

    .category-section {
        padding: 12px 0;
    }

    .category-filters {
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding: 0 15px 12px;

        scroll-snap-type: x proximity;
        justify-content: flex-start;
    }

    .category-pill {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

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

    .menu-list {
        gap: 15px;
        padding: 0 15px;
    }

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

    .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;
    }

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

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

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

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

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

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

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

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

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

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

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

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

    .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;
    }

    .admin-toggle {
        bottom: 82px;
        right: 15px;
    }

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

    .feedback-form-container {
        padding: 25px 20px;
    }

    .feedback-form-title {
        font-size: 1.1rem;
    }

    .admin-overlay-content {
        width: 90%;
    }
}

/* ---------- Laptop/Desktop: above 768px ---------- */
@media (min-width: 769px) {
    .category-section.stuck {
        padding: 12px 0;
    }
}

/* ---------- Tablet & below: up to 992px ---------- */
@media (max-width: 992px) {
    .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%);
    }
}

/* ---------- Landscape mode ---------- */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 60vh;
        min-height: 60dvh;
    }

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

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

    .search-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .category-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 8px;
        justify-content: flex-start;

        scroll-snap-type: x proximity;
    }

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

    .search-section {
        padding: 15px 0 10px;
    }

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

    .menu-list {
        gap: 10px;
    }

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

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

/* ---------- 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));
    }

    .admin-toggle {
        bottom: calc(80px + 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;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    .category-pill:active {
        opacity: 0.8;
    }

    .category-pill {
        min-height: 44px;
    }

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

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

    .floating-btn:active {
        opacity: 0.8;
    }

    .floating-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .btn-map:active {
        opacity: 0.8;
    }

    * {
        -webkit-tap-highlight-color: transparent;
    }

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

/* ---------- 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;
}

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

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

/* ---------- 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;
}

/* ---------- Android Viewport Fixes ---------- */
@supports not (height: 100dvh) {
    .hero-section {
        min-height: calc(100vh - 60px);
    }
}

@supports (height: 100dvh) {
    .hero-section {
        min-height: 100dvh;
    }
}

@supports (height: 100svh) {
    .hero-section {
        min-height: 100svh;
    }
}

/* ---------- Menu item scroll margin on mobile ---------- */
@media (max-width: 768px) {
    .menu-section {
        scroll-margin-top: 80px;
    }

    .search-section {
        scroll-margin-top: 60px;
    }

    .menu-list-item {
        min-width: 0;
        width: 100%;
    }

    .menu-list-image {
        position: relative;
    }

    .menu-list-content {
        overflow: hidden;
        word-break: break-word;
    }

    .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;
    }
}

/* ---------- Feedback Responsive (shared for all mobile) ---------- */
@media (max-width: 768px) {
    .feedback-section {
        padding: 50px 0;
    }

    .feedback-list {
        max-width: 100%;
        margin: 0 15px 35px;
    }

    .feedback-card {
        padding: 20px;
    }

    .feedback-form-container {
        padding: 25px 20px;
        margin: 0 15px;
    }

    .feedback-form-title {
        font-size: 1.1rem;
    }

    .feedback-input,
    .feedback-textarea {
        font-size: 16px;
    }

    .feedback-rating i {
        font-size: 1.8rem;
    }
}
