/*
Theme Name: آتش‌و‌دود
Theme URI: https://yourdomain.com
Author: Your Name
Description: قالب اختصاصی رستوران مدرن با افکت‌های لوکس
Version: 1.0
License: GPL v2 or later
Text Domain: atashodood
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d0a08;
    color: #f0e6d3;
    overflow-x: hidden;
    cursor: none;
}
/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #d4a847;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}
.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid #d4a847;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}
/* ===== BACKGROUND BUBBLES ===== */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 168, 71, 0.08), rgba(180, 40, 40, 0.05));
    animation: floatBubble 20s infinite alternate ease-in-out;
    will-change: transform, opacity;
}
.bubble:nth-child(1) { width: 300px; height: 300px; top: 10%; left: -5%; animation-duration: 25s; }
.bubble:nth-child(2) { width: 450px; height: 450px; bottom: 5%; right: -8%; animation-duration: 30s; animation-delay: -5s; }
.bubble:nth-child(3) { width: 200px; height: 200px; top: 50%; left: 50%; animation-duration: 18s; animation-delay: -10s; }
.bubble:nth-child(4) { width: 350px; height: 350px; bottom: 20%; left: 10%; animation-duration: 22s; animation-delay: -3s; }
.bubble:nth-child(5) { width: 250px; height: 250px; top: 15%; right: 10%; animation-duration: 28s; animation-delay: -7s; }
@keyframes floatBubble {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    33% { transform: translate(30px, -40px) scale(1.1); opacity: 0.6; }
    66% { transform: translate(-20px, 30px) scale(0.9); opacity: 0.4; }
    100% { transform: translate(15px, -25px) scale(1.05); opacity: 0.5; }
}
/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    background: transparent;
}
header.scrolled {
    background: rgba(13, 10, 8, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #d4a847, #f5d98e, #d4a847);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowGold 3s infinite alternate;
    text-shadow: 0 0 20px rgba(212, 168, 71, 0.3);
}
@keyframes glowGold {
    0% { background-position: 0% 50%; filter: drop-shadow(0 0 8px rgba(212,168,71,0.2)); }
    100% { background-position: 100% 50%; filter: drop-shadow(0 0 20px rgba(212,168,71,0.6)); }
}
nav { display: flex; align-items: center; gap: 28px; }
nav a {
    color: #f0e6d3;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0%;
    height: 2px;
    background: #d4a847;
    transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }
nav a:hover { color: #d4a847; }
.btn-reserve {
    background: linear-gradient(135deg, #b8860b, #d4a847);
    color: #0d0a08 !important;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(212, 168, 71, 0.4);
    font-size: 0.95rem;
}
.btn-reserve:hover { transform: scale(1.05); box-shadow: 0 6px 25px rgba(212, 168, 71, 0.6); }
.btn-reserve .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleAnim 0.8s linear;
    pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 28px; height: 3px; background: #f0e6d3; border-radius: 5px; transition: 0.3s; }
/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    z-index: 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" preserveAspectRatio="xMidYMid slice"><rect width="1200" height="800" fill="%23100d0a"/><circle cx="200" cy="200" r="350" fill="%23b8860b" opacity="0.15"/><circle cx="900" cy="500" r="400" fill="%238b0000" opacity="0.12"/><circle cx="600" cy="100" r="250" fill="%23d4a847" opacity="0.08"/></svg>') center/cover no-repeat;
    animation: zoomBg 20s infinite alternate ease-in-out;
    z-index: -1;
}
@keyframes zoomBg { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.hero-title {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #f5d98e, #d4a847, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 1.6rem;
    color: #f0e6d3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    min-height: 3.5rem;
    margin-bottom: 35px;
    font-weight: 300;
}
.hero-sub .typewriter { border-left: 3px solid #d4a847; padding-right: 8px; animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }
.hero-btns { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
}
.hero-btn.primary { background: linear-gradient(135deg, #d4a847, #b8860b); color: #0d0a08; }
.hero-btn.primary:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 16px 40px rgba(212,168,71,0.5); }
.hero-btn.secondary { background: transparent; color: #f0e6d3; border: 2px solid #d4a847; }
.hero-btn.secondary:hover { background: #d4a847; color: #0d0a08; transform: translateY(-6px) scale(1.04); }
/* ===== SECTIONS ===== */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #f0e6d3;
}
.section-title span { background: linear-gradient(135deg, #d4a847, #f5d98e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4a847, transparent);
    margin: 12px auto 0;
    border-radius: 5px;
}
.menu-section, .gallery-section, .testimonials-section, .contact-section {
    padding: 80px 30px 60px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
/* ===== FILTER & MENU GRID ===== */
.filter-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}
.filter-btn {
    padding: 10px 28px;
    border: 2px solid #d4a847;
    background: transparent;
    color: #f0e6d3;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}
.filter-btn.active, .filter-btn:hover { background: #d4a847; color: #0d0a08; box-shadow: 0 4px 20px rgba(212,168,71,0.4); }
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}
.menu-card {
    background: rgba(20, 15, 12, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(212, 168, 71, 0.15);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.7s forwards;
}
.menu-card:hover { transform: scale(1.04) translateY(-6px); box-shadow: 0 25px 50px rgba(212,168,71,0.3); }
.menu-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #d4a847, #f5d98e);
    transition: width 0.5s ease;
}
.menu-card:hover::after { width: 100%; }
.menu-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.menu-card:hover img { transform: scale(1.05); }
.menu-card .info { padding: 20px 22px; }
.menu-card h3 { font-size: 1.4rem; color: #f5d98e; margin-bottom: 6px; }
.menu-card p { font-size: 0.95rem; color: #ccc5b8; margin-bottom: 10px; line-height: 1.5; }
.menu-card .price { font-size: 1.4rem; font-weight: 700; color: #d4a847; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 18px;
    grid-auto-flow: dense;
}
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    background: #1a1410;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.gallery-item:nth-child(1) { grid-row: span 2; grid-column: span 2; }
.gallery-item:nth-child(4) { grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, filter 0.5s; }
.gallery-item:hover img { transform: scale(1.1); filter: brightness(0.6); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212, 168, 71, 0.1);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.4s, background 0.4s;
    pointer-events: none;
    border-radius: 16px;
}
.gallery-item:hover::after { backdrop-filter: blur(4px); background: rgba(212,168,71,0.15); }
/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.modal.open { display: flex; animation: modalIn 0.4s ease; }
@keyframes modalIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
.modal img { max-width: 90%; max-height: 80vh; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.8); border: 2px solid #d4a847; }
.modal .close-modal { position: absolute; top: 30px; left: 40px; font-size: 3rem; color: #f0e6d3; cursor: pointer; transition: 0.3s; }
.modal .close-modal:hover { color: #d4a847; transform: rotate(90deg); }
/* ===== TESTIMONIALS ===== */
.slider-container {
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    background: rgba(20, 15, 12, 0.6);
    backdrop-filter: blur(6px);
    padding: 30px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.slider-track { display: flex; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.testimonial-card { min-width: 100%; padding: 20px 30px; text-align: center; opacity: 0.7; transition: opacity 0.6s; }
.testimonial-card.active { opacity: 1; }
.testimonial-card .stars { color: #d4a847; font-size: 1.6rem; margin-bottom: 12px; letter-spacing: 4px; }
.testimonial-card p { font-size: 1.2rem; line-height: 1.7; color: #e8ddd0; max-width: 700px; margin: 0 auto 16px; font-style: italic; }
.testimonial-card h4 { color: #f5d98e; font-size: 1.1rem; }
/* ===== CONTACT FORM ===== */
.contact-form {
    background: rgba(20, 15, 12, 0.7);
    backdrop-filter: blur(8px);
    padding: 40px 45px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 168, 71, 0.15);
}
.form-group { margin-bottom: 28px; position: relative; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 0 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #4a3f35;
    color: #f0e6d3;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.4s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-bottom-color: #d4a847; }
.form-group label {
    position: absolute;
    top: 12px;
    right: 0;
    color: #9a8b7a;
    transition: 0.3s;
    pointer-events: none;
    font-size: 0.95rem;
}
.form-group input:focus~label, .form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label, .form-group textarea:not(:placeholder-shown)~label {
    top: -12px; font-size: 0.8rem; color: #d4a847;
}
.form-group .underline {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #d4a847;
    transition: width 0.4s ease;
}
.form-group input:focus~.underline, .form-group textarea:focus~.underline { width: 100%; }
.submit-btn {
    background: linear-gradient(135deg, #d4a847, #b8860b);
    color: #0d0a08;
    border: none;
    padding: 16px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(212, 168, 71, 0.3);
}
.submit-btn:hover { transform: scale(1.02); box-shadow: 0 10px 35px rgba(212,168,71,0.5); }
.submit-btn .spinner { display: none; width: 24px; height: 24px; border: 3px solid #0d0a08; border-top-color: #d4a847; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
.submit-btn.loading .spinner { display: block; }
.submit-btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-msg { display: none; color: #5fca7a; font-size: 1.2rem; margin-top: 20px; text-align: center; font-weight: 500; }
.success-msg.show { display: block; }
/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #0d0a08, #1a0f0a);
    padding: 50px 30px 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(212, 168, 71, 0.15);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.footer-content h4 { color: #d4a847; font-size: 1.2rem; margin-bottom: 16px; }
.footer-content p, .footer-content a { color: #b0a392; line-height: 1.8; text-decoration: none; font-size: 0.95rem; }
.footer-content .socials { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.footer-content .socials a { color: #f0e6d3; font-size: 1.6rem; transition: 0.3s; }
.footer-content .socials a:hover { color: #d4a847; transform: translateY(-4px); }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(212,168,71,0.1); color: #7a6b5a; font-size: 0.9rem; }
/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* ===== RESPONSIVE ===== */
@media (max-width: 992px) { .hero-title { font-size: 3.6rem; } .hero-sub { font-size: 1.3rem; } }
@media (max-width: 768px) {
    header { padding: 14px 20px; }
    nav { display: none; flex-direction: column; background: rgba(13,10,8,0.95); backdrop-filter: blur(10px); position: absolute; top: 70px; right: 20px; left: 20px; padding: 25px; border-radius: 20px; gap: 18px; border: 1px solid rgba(212,168,71,0.2); }
    nav.open { display: flex; }
    .hamburger { display: flex; }
    .hero-title { font-size: 2.8rem; }
    .hero-sub { font-size: 1rem; min-height: 2.8rem; }
    .hero-btn { padding: 14px 30px; font-size: 1rem; }
    .section-title { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: 150px; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(4), .gallery-item:nth-child(6) { grid-row: span 1; grid-column: span 1; }
    .contact-form { padding: 25px 20px; }
    .cursor-dot, .cursor-ring { display: none; }
}
@media (max-width: 480px) { .hero-title { font-size: 2.2rem; } .menu-grid { grid-template-columns: 1fr; } }