/*
Theme Name: عمارت کافه
Author: Mahdi Anbari
Description: قالب مدرن و سبک کافه با پشتیبانی کامل از موبایل
Version: 7.1.0
Text Domain: atelier-coffee
*/

:root {
    --bg-base: #0B0A09;
    --bg-surface: #141210;
    --bg-card: #1A1714;
    --bg-card-elevated: #24201C;
    
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dim: #997B28;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --gold-border: rgba(212, 175, 55, 0.25);

    --accent-emerald: #10B981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.15);

    --text-white: #FFFFFF;
    --text-body: #E8E3DB;
    --text-muted: #A39B8F;
    --text-dim: #71695E;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold-subtle: rgba(212, 175, 55, 0.35);

    --radius-xs: 8px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --font-main: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --transition-luxury: all 0.35s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-body);
    line-height: 1.85;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 800;
    line-height: 1.3;
}

/* برچسب‌های نشانگر */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    background: var(--gold-glow);
    color: var(--gold-light);
    border: 1px solid var(--gold-border);
    margin-bottom: 20px;
}

.badge-tech {
    background: var(--accent-emerald-glow);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: var(--transition-luxury);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    color: #0B0A08;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.38);
    background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 100%);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
    background: rgba(212, 175, 55, 0.08);
}

/* نوار متحرک اعلان بالای سایت */
.ticker-strip {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    padding: 10px 0;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    animation: marqueeTrack 45s linear infinite;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 30px;
}

.ticker-item::before {
    content: "☕";
    margin-left: 10px;
}

@keyframes marqueeTrack {
    0% { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}

/* هدر سایت */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 10, 9, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-brand span {
    color: var(--gold-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-luxury);
}

.nav-links a:hover {
    color: var(--gold-light);
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.88rem;
}

/* بخش ۱: هیرو */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 70px 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--gold-light);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.95;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.stat-box strong {
    display: block;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
}

.stat-box span {
    font-size: 0.84rem;
    color: var(--text-dim);
}

.hero-visual-card {
    position: relative;
}

.hero-main-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.hero-floating-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: rgba(20, 18, 16, 0.95);
    border: 1px solid var(--gold-border);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.floating-meta-title {
    font-size: 0.78rem;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 4px;
}

.floating-meta-val {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

/* بخش ۲: سفارش هوشمند با کد QR */
.qr-feature-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.qr-feature-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.qr-visual-box {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
}

.qr-code-graphic {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-sm);
}

.qr-code-graphic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-visual-meta h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--gold-light);
}

.qr-visual-meta p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.qr-tech-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}

.qr-step-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition-luxury);
}

.qr-step-card:hover {
    border-color: var(--gold-border);
    background: var(--bg-card-elevated);
}

.qr-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-glow);
    color: var(--gold-light);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.qr-step-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.qr-step-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* بخش ۳: قهوه‌ها */
.origins-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.origin-photo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-luxury);
}

.origin-photo-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-border);
}

.origin-img-wrap {
    height: 190px;
    position: relative;
}

.origin-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.origin-score-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 10, 9, 0.85);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.origin-card-body {
    padding: 20px;
}

.origin-country {
    font-size: 0.8rem;
    color: var(--gold-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.origin-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.origin-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.note-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.76rem;
    color: var(--text-body);
}

/* بخش ۴: منوی کافه */
.menu-category-block {
    margin-bottom: 60px;
}

.menu-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    margin-bottom: 26px;
}

.menu-block-header h3 {
    font-size: 1.5rem;
    color: var(--gold-light);
}

.menu-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.menu-visual-item {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: var(--transition-luxury);
}

.menu-visual-item:hover {
    border-color: var(--gold-border);
    background: var(--bg-card-elevated);
}

.menu-thumb {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.menu-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-title-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.menu-title-price strong {
    font-size: 1rem;
    color: var(--text-white);
}

.menu-title-price span {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.menu-item-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* بخش ۵: گالری تصاویر فضا */
.space-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.space-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.space-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.space-tile:hover img {
    transform: scale(1.04);
}

.space-tile.col-7 { grid-column: span 7; grid-row: span 2; }
.space-tile.col-5 { grid-column: span 5; }
.space-tile.col-4 { grid-column: span 4; }
.space-tile.col-8 { grid-column: span 8; }

.space-tag {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(11, 10, 9, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-subtle);
}

/* بخش ۶: هماهنگی و تماس */
.concierge-luxury-card {
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 50px 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.concierge-content h2 {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.concierge-content p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 20px;
}

.concierge-specs {
    border-top: 1px solid var(--border-subtle);
    padding-top: 18px;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.concierge-call-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 35px 25px;
    text-align: center;
}

.huge-phone-link {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    direction: ltr;
    display: block;
    margin: 10px 0 20px;
    text-decoration: none;
    transition: var(--transition-luxury);
}

.huge-phone-link:hover {
    color: var(--gold-primary);
}

/* بخش ۷: سوالات متداول */
.faq-container {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
}

.faq-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--gold-light);
}

.faq-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* فوتر سایت */
.site-footer {
    background: #060505;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 30px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-heading {
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 18px;
}

.footer-nav-list {
    list-style: none;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-luxury);
}

.footer-nav-list a:hover {
    color: var(--gold-light);
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 25px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ===================================================
   استایل‌های کاملاً بهینه شده برای تبلت و موبایل (Responsive)
=================================================== */

@media (max-width: 992px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-grid, 
    .qr-feature-grid, 
    .concierge-luxury-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-main-img {
        height: 380px;
    }

    .origins-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-visual-grid {
        grid-template-columns: 1fr;
    }

    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    /* هدر موبایل */
    .desktop-nav {
        display: none;
    }

    .hero-section {
        padding: 40px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-desc {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-box strong {
        font-size: 1.4rem;
    }

    .stat-box span {
        font-size: 0.75rem;
    }

    .hero-main-img {
        height: 280px;
    }

    .hero-floating-badge {
        position: static;
        margin-top: 12px;
        border-radius: var(--radius-xs);
    }

    /* کارت بارکد در موبایل */
    .qr-visual-box {
        padding: 25px 16px;
    }

    .qr-code-graphic {
        width: 150px;
        height: 150px;
    }

    /* کارت‌های قهوه تک‌ستونی */
    .origins-grid-cards {
        grid-template-columns: 1fr;
    }

    /* گالری تصاویر فضا در موبایل */
    .space-mosaic-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .space-tile, 
    .space-tile.col-7, 
    .space-tile.col-5, 
    .space-tile.col-4, 
    .space-tile.col-8 {
        height: 220px;
    }

    /* آیتم‌های منو در موبایل */
    .menu-visual-item {
        flex-direction: row;
        align-items: center;
    }

    .menu-thumb {
        width: 80px;
        height: 80px;
    }

    .menu-title-price strong {
        font-size: 0.95rem;
    }

    .menu-title-price span {
        font-size: 0.9rem;
    }

    /* باکس تماس و رزرو */
    .concierge-luxury-card {
        padding: 30px 20px;
    }

    .concierge-content h2 {
        font-size: 1.7rem;
    }

    .huge-phone-link {
        font-size: 1.6rem;
    }

    /* فوتر در موبایل */
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .menu-visual-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-thumb {
        width: 100%;
        height: 160px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
    }
}