:root {
    /* Brand — Restaurant palette */
    --primary-color:  #a52121;   /* Burgundy */
    --primary-dark:   #7a1616;   /* Deep wine */
    --primary-light:  #fbe6e6;   /* Blush */
    --accent-color:   #c9962b;   /* Warm gold */
    --accent-dark:    #a67a1e;
    --accent-light:   #f7e9c4;

    --secondary-color:#1f1b18;   /* Charcoal / espresso */
    --secondary-soft: #2b2622;

    --success-color:  #2f855a;
    --warning-color:  #c9962b;
    --danger-color:   #a52121;

    /* Surfaces */
    --bg-cream:       #fdf8f0;   /* Warm ivory */
    --bg-soft:        #faf5ec;
    --light-bg:       #fdf8f0;
    --surface:        #ffffff;

    /* Text */
    --dark-text:      #1f1b18;
    --body-text:      #3d3532;
    --gray-text:      #7a6f6a;
    --muted-text:     #a89e99;

    --border-color:   #eee3d1;
    --border-soft:    #f4ebd9;

    /* Shape */
    --radius-sm: .5rem;
    --radius:    .875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(31,27,24,.06);
    --shadow:    0 6px 18px -6px rgba(31,27,24,.12), 0 2px 6px -2px rgba(31,27,24,.06);
    --shadow-lg: 0 22px 40px -18px rgba(31,27,24,.28), 0 8px 16px -8px rgba(31,27,24,.10);
    --shadow-gold: 0 12px 30px -12px rgba(201,150,43,.55);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --grad-gold:    linear-gradient(135deg, #d9a53a 0%, var(--accent-color) 50%, var(--accent-dark) 100%);
    --grad-dark:    linear-gradient(135deg, #2b2622 0%, #1f1b18 100%);

    --transition: .3s cubic-bezier(.2,.7,.3,1);
}

/*@font-face {*/
/*    font-family: 'iransansdn';*/
/*    src: url('/assets/fonts/iransansdn.ttf') format('truetype');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*    font-display: swap;*/
/*}*/


/*@font-face {*/
/*    font-family: 'iransansdn';*/
/*    src: url('/assets/fonts/iransansdn.woff2') format('woff2'),*/
/*         url('/assets/fonts/iransansdn.woff') format('woff');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*    font-display: swap;*/
/*}*/

@font-face {
    font-family: 'iransansdn';
    src: url('/assets/fonts/iransansdn.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


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

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: 'iransansdn','Vazirmatn','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    line-height: 1.9;
    color: var(--body-text);
    background: var(--surface);
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-wrap: anywhere;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }
a  { text-decoration: none; }

.text-gold { color: var(--accent-color); }


.navbar-toggler {
    border: 1px solid #fff !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hafanwp .logo {
  width: clamp(90px, 18vw, 100px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;

  -webkit-mask: linear-gradient(
      -60deg,
      #000 30%,
      #0005,
      #000 50%
    ) right/300% 100%;

  mask: linear-gradient(
      -60deg,
      #000 30%,
      #0005,
      #000 50%
    ) right/300% 100%;

  animation: nsshine 3s linear infinite;
}

/* =========================
   SHINE EFFECT
========================= */

@keyframes nsshine {
  0% {
    -webkit-mask-position: 140% 0;
    mask-position: 140% 0;
  }

  100% {
    -webkit-mask-position: -20% 0;
    mask-position: -20% 0;
  }
}

/* ---------- Navbar (سازگار با ساختار قبلی) ---------- */
.main-navbar {
    background: rgba(31,27,24,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.main-navbar.scrolled {
    background: rgba(31,27,24,.98);
    box-shadow: var(--shadow);
}
.brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-color);
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .3px;
}
.navbar-nav .nav-link {
    font-weight: 600;
    padding: .5rem 1rem;
    margin: 0 .15rem;
    border-radius: var(--radius-sm);
    color: #f4ebd9 !important;
    transition: var(--transition);
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(201, 150, 43, .15);
    color: #f0c75e !important;
}

/* ---------- FIX: منوی موبایل روی محتوای هیرو overlap می‌شد ----------
   دلیل مشکل: چون .main-navbar فیکس است، وقتی .navbar-collapse باز می‌شود
   ارتفاع نوبار بیشتر می‌شود اما padding-top ثابتِ body عوض نمی‌شود؛ در نتیجه
   بخش بازشده‌ی منو دقیقاً روی متن هیروی زیرش می‌افتد و چون پس‌زمینه‌اش هم
   کاملاً مات نبود، متن‌های پشت آن (مثل آمار هیرو) از زیرش دیده می‌شدند.
   راه‌حل: تبدیل منوی بازشده به یک پنل شناور مستقل (position: fixed) با
   پس‌زمینه‌ی کاملاً مات که خودش اسکرول می‌شود و هیچ‌وقت روی محتوای صفحه
   overlap نمی‌کند. */
@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        position: fixed;
        top: 76px;
        inset-inline: 0;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(20, 17, 15, .98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(255,255,255,.08);
        padding: 1rem 1.25rem 1.5rem;
        z-index: 1045;
    }
    .main-navbar .navbar-nav {
        width: 100%;
    }
    .main-navbar .navbar-nav .nav-link {
        width: 100%;
    }
    .main-navbar .navbar-collapse > .d-flex {
        flex-wrap: wrap;
        row-gap: .6rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .main-navbar .navbar-collapse > .d-flex > * {
        margin-inline-end: 0 !important;
    }
    .main-navbar .navbar-collapse > .d-flex > .btn-primary,
    .main-navbar .navbar-collapse > .d-flex > .dropdown {
        flex: 1 1 100%;
    }
}
@media (max-width: 767.98px) {
    .main-navbar .navbar-collapse {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
}

/* ---------- Search ---------- */
.search-collapse {
    background: rgba(253,248,240,.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}
.search-form   { padding: 1rem 0; }
.search-btn    { transition: var(--transition); color:#FFF;}
.search-btn:hover { transform: scale(1.08); }


/* ═══════════════════ HERO (نسخه‌ی جدید — مسیر دوگانه) ═══════════════════ */
.hero-section {
    position: relative;
    background:
        radial-gradient(60% 90% at 88% 0%, rgba(201,150,43,.18), transparent 60%),
        radial-gradient(55% 80% at 5% 10%, rgba(165,33,33,.12), transparent 60%),
        var(--bg-cream);
    color: var(--dark-text);
    padding: 70px 0 60px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--border-color);
}
.hero-bg { display: none; }
.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem;
    background: var(--primary-light);
    border: 1px solid rgba(165,33,33,.15);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-text);
}
.hero-title-about{
      font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #FFF;
}
.hero-subtitle-about {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: #FFF;
    max-width: 36rem;
    margin-bottom: 1.75rem;
}




.hero-title-accent {
    display: block;
    color: var(--primary-color);
}
.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--gray-text);
    max-width: 36rem;
    margin-bottom: 1.75rem;
}
.hero-buttons {
    display: flex; flex-wrap: wrap; gap: .85rem;
    margin-bottom: 1.75rem;
}

/* نوار جست‌وجوی هیرو (منطبق با طرح جدید) */
.hero-searchbar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: .55rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.hero-searchbar .form-control,
.hero-searchbar .form-select {
    border: 0;
    box-shadow: none !important;
    font-weight: 600;
    background: transparent;
}

.hero-chips { margin-bottom: 1.5rem; }
.chip {
    display: inline-block;
    font-size: .83rem;
    font-weight: 600;
    color: var(--gray-text);
    background: #fff;
    border: 1px solid var(--border-color);
    padding: .32rem .75rem;
    border-radius: 999px;
    margin: .2rem .15rem;
    transition: var(--transition);
}
.chip:hover { color: var(--primary-color); border-color: var(--primary-color); }

.hero-trust {
    display: inline-flex; align-items: center; gap: 1.25rem;
    padding: .9rem 1.4rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.hero-trust-item { text-align: center; }
.hero-trust-item strong {
    display: block;
    color: var(--dark-text);
    font-size: 1.15rem;
    font-weight: 800;
}
.hero-trust-item span {
    display: block;
    font-size: .78rem;
    color: var(--gray-text);
}
.hero-trust-divider {
    width: 1px; height: 32px;
    background: var(--border-color);
}

/* کارت مسیر رستوران‌دار در هیرو */
.hero-owner-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.hero-owner-card .tick { color: var(--accent-color); }

/* Hero image (در صورت استفاده در نسخه‌های دیگر) */
.hero-image-wrap { position: relative; text-align: center; }
.hero-image-glow { display: none; }
.hero-image {
    position: relative;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

/* ═══════════════════ Ads ═══════════════════ */
.ads-strip { padding: 1.75rem 0; }
.ad-banner, .ad-card { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.ad-banner img {
    width: 100%; max-height: 120px; object-fit: cover;
    border-radius: var(--radius);
}
.ad-card img {
    width: 100%; height: 220px; object-fit: cover;
    transition: transform .5s ease;
}
.ad-card:hover img { transform: scale(1.04); }

/* ═══════════════════ Sections ═══════════════════ */
.section    { padding: 80px 0; }
.section-sm { padding: 40px 0; }
.section-light { background: var(--bg-cream); }

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
}
.section-header.section-header-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
    max-width: none;
    margin: 0 0 2rem;
}
.section-eyebrow {
    display: inline-block;
    padding: .35rem 1rem;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: .9rem;
}
.eyebrow-light {
    background: rgba(255,255,255,.12);
    color: var(--accent-color);
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: .5rem;
    line-height: 1.3;
}
.section-title::after { content: none; } /* پاک‌سازی خط قدیمی */
.section-sub {
    color: var(--gray-text);
    font-size: 1.05rem;
    margin: 0;
}

/* ═══════════════════ Stats (داخل هیرو) ═══════════════════ */
.stats-section { padding: 60px 0; background: var(--bg-soft); }
.stat-item {
    text-align: center;
    padding: 1.75rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-light);
}
.stat-icon {
    width: 54px; height: 54px;
    margin: 0 auto .9rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px -8px rgba(165,33,33,.5);
}
.stat-number {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
}
.stat-label {
    display: block;
    font-size: .95rem;
    color: var(--gray-text);
    margin-top: .25rem;
    font-weight: 600;
}

/* ═══════════════════ Categories (آیکونی، منطبق با طرح جدید) ═══════════════════ */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--dark-text);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}
.category-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 56px; height: 56px;
    margin: 0 auto .25rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: var(--transition);
}
.category-card:hover .category-icon {
    background: var(--grad-primary);
    color: #fff;
}
.category-name  { font-weight: 700; margin-bottom: 0; font-size: .95rem; }
.category-count { color: var(--gray-text); font-size: .78rem; margin: 0; }
.category-arrow { display: none; }

/* ═══════════════════ Restaurant Cards (سبک card-soft) ═══════════════════ */
.restaurant-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
    display: flex; flex-direction: column;
    border: 1px solid var(--border-color);
}
.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.restaurant-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-soft);
}
.restaurant-image {
    /* امنیت CLS: این aspect-ratio مستقیم روی خود تصویر هم ست شده (نه فقط روی
       .restaurant-media)، چون در restaurants.php (لیست رستوران‌ها) این تصویر
       بدون والدِ .restaurant-media استفاده می‌شه؛ بدون این خط، قبل از لود کامل
       تصویر ارتفاع کارت صفر بود و باعث پرش صفحه (Layout Shift) موقع لود می‌شد. */
    width: 100%; height: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform .5s ease;
}
.restaurant-card:hover .restaurant-image { transform: scale(1.06); }
.restaurant-image-placeholder {
    display: grid; place-items: center;
    color: var(--muted-text);
    font-size: 2.5rem;
}

.badge.featured-badge,
.badge.price-badge {
    position: absolute;
    padding: .4rem .7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .75rem;
    box-shadow: 0 6px 14px -4px rgba(0,0,0,.25);
    display: inline-flex; align-items: center; gap: .3rem;
}
.badge.featured-badge {
    top: .85rem; right: .85rem;
    background: var(--grad-gold);
    color: #fff;
}
.badge.price-badge {
    bottom: .85rem; right: .85rem;
    background: rgba(255,255,255,.95);
    color: var(--success-color);
     width: auto;
     padding: .3rem .6rem;
    height: auto;
}

.restaurant-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex; flex-direction: column; flex: 1;
}
.restaurant-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: .5rem;
    color: var(--dark-text);
    line-height: 1.3;
}
.restaurant-meta {
    font-size: .82rem;
    color: var(--gray-text);
    margin-bottom: .35rem;
    display: flex; align-items: center; gap: .4rem;
}
.restaurant-meta i { color: var(--accent-color); font-size: .78rem; }

.restaurant-footer {
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px dashed var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.restaurant-views {
    font-size: .8rem;
    color: var(--gray-text);
    display: inline-flex; align-items: center; gap: .35rem;
}
.restaurant-views i { color: var(--accent-color); }

/* ═══════════════════ Showcase (بهترین انتخاب) ═══════════════════ */
.restaurant-showcase {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: clamp(320px, 45vw, 460px);
    box-shadow: var(--shadow-lg);
}
.showcase-image {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.showcase-image-placeholder { background: var(--grad-dark); }
.showcase-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(31,27,24,.05) 0%, rgba(31,27,24,.75) 60%, rgba(31,27,24,.92) 100%);
    display: flex; align-items: flex-end;
    padding: 2rem;
}
.showcase-content {
    color: #fff;
    max-width: 640px;
}
.showcase-badge {
    background: var(--grad-gold);
    color: #fff;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .8rem;
    display: inline-flex; align-items: center; gap: .4rem;
    margin-bottom: .9rem;
}
.showcase-title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: .5rem;
    color: #fff;
}
.showcase-desc {
    color: #e9dfd0;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* ═══════════════════ چرا ما (Why-us) ═══════════════════ */
.why-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-card .why-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: .75rem; }

/* ═══════════════════ بخش رستوران‌داران (Owner) ═══════════════════ */
.owner-section {
    background: var(--grad-dark);
  color: #fdf8f0;
  margin: 10px auto;
  max-width: 80%;
  border-radius: 20px;
}
.owner-section .card-soft-dark {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    color: #fff;
}
.step-num {
    width: 2.2rem; height: 2.2rem;
    border-radius: 999px;
    background: var(--grad-primary);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800; flex: 0 0 auto;
}

/* ═══════════════════ Blog ═══════════════════ */
.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
    border: 1px solid var(--border-soft);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.blog-media {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-soft);
}
.blog-image {
    /* aspect-ratio این‌جا هم مستقیم روی خود تصویر ست شده (نه فقط روی
       .blog-media)، چون در blog.php برای کارت‌های لیست بلاگ این تصویر بدون
       والدِ .blog-media استفاده می‌شه؛ بدون این خط، ارتفاع کارت‌ها بسته به
       نسبت‌ابعاد تصویر آپلودی هر پست فرق می‌کرد و ردیف کارت‌ها نامنظم به‌نظر
       می‌رسید. */
    width: 100%; height: 100%; object-fit: cover;
    aspect-ratio: 16/10;
    transition: transform .6s ease;
}
.blog-card:hover .blog-image { transform: scale(1.06); }
.blog-image-placeholder {
    display: grid; place-items: center;
    color: var(--muted-text); font-size: 2.5rem;
}
.blog-body {
    padding: 1.25rem 1.25rem 1.4rem;
    display: flex; flex-direction: column; flex: 1;
}
.blog-date {
    font-size: .8rem;
    color: var(--gray-text);
    display: inline-flex; align-items: center; gap: .4rem;
    margin-bottom: .6rem;
}
.blog-date i { color: var(--accent-color); }
.blog-title {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--dark-text);
    margin-bottom: .5rem;
}
.blog-excerpt {
    color: var(--gray-text);
    font-size: .9rem;
    margin-bottom: 1rem;
    flex: 1;
}
.blog-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: .9rem;
    display: inline-flex; align-items: center; gap: .35rem;
    transition: var(--transition);
}
.blog-link:hover { color: var(--primary-dark); gap: .6rem; }

/* ═══════════════════ CTA ═══════════════════ */
.cta-section { padding: 80px 0; background: var(--bg-cream); }
.cta-wrap {
    position: relative;
    background: var(--grad-dark);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.5rem);
    overflow: hidden;
    color: #fdf8f0;
    box-shadow: var(--shadow-lg);
}
.cta-wrap::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(500px 300px at 90% 100%, rgba(201,150,43,.35), transparent 60%),
        radial-gradient(400px 250px at 0% 0%, rgba(165,33,33,.35), transparent 60%);
    pointer-events: none;
}
.cta-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: .5rem 0 .75rem;
}
.cta-desc {
    color: #d8ccbb;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
    max-width: 42rem;
}
.cta-image { max-height: 220px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }

.cta-split-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.25rem 1.5rem;
    text-align: center;
    height: 100%;
}

/* ═══════════════════ Buttons ═══════════════════ */
.btn {
    border-radius: .75rem;
    padding: .7rem 1.35rem;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center;
    border: none;
}
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(165,33,33,.7);
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-dark), #5c1010);
    color: #fff;
    box-shadow: 0 16px 28px -12px rgba(165,33,33,.8);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--grad-gold);
    color: #fff;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    transform: translateY(-2px);
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 18px 36px -14px rgba(201,150,43,.7);
}

.btn-ghost {
    background: rgba(31,27,24,.06);
    color: var(--primary-light);
    border: 1px solid var(--border-color);
}

.btn-lgh{
     background: rgba(31,27,24,.06);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover {
    background: var(--dark-text);
    color: #fff;
    transform: translateY(-2px);
}

.btn-dark2 {
    background: var(--secondary-color);
    color: #fff;
}
.btn-dark2:hover { background: #000; color: #fff; transform: translateY(-2px); }

.btn-outline-light {
    background: transparent;
    color: #fdf8f0;
    border: 2px solid rgba(255,255,255,.4);
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--dark-text);
    transform: translateY(-2px);
}

/* ═══════════════════ Sticky mobile CTA ═══════════════════ */
.sticky-cta {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1040;
    background: #fff; border-top: 1px solid var(--border-color);
    padding: .6rem .9rem;
    box-shadow: 0 -8px 24px -18px rgba(0,0,0,.5);
    display: none;
}
@media (max-width: 767.98px) {
    .sticky-cta { display: flex; gap: .5rem; }
    body { padding-bottom: 4.4rem; }
}

/* ═══════════════════ Empty state ═══════════════════ */
.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}
.empty-state i {
    font-size: 3rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
}
.empty-state h4 { color: var(--gray-text); font-weight: 700; }

/* ═══════════════════ Footer (سازگار با ساختار قبلی — بدون تغییر) ═══════════════════ */
.main-footer {
    background: var(--secondary-color);
    color: #d8ccbb;
    padding: 60px 0 0;
}
.footer-links h5 {
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    font-weight: 700;
}
.footer-links a {
    color: #b8ada4;
    display: block;
    margin-bottom: .5rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: #fff;
    transform: translateX(-5px); /* RTL */
}
.footer-bottom {
    border-top: 1px solid #3a332e;
    padding: 1.75rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #fff;
    font-size: .875rem;
}

/* ═══════════════════ Animations ═══════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Hero sequence */

.hero-eyebrow {
    animation-delay: 0ms;
}

.hero-title {
    animation-delay: 100ms;
}

.hero-subtitle {
    animation-delay: 200ms;
}

.hero-buttons {
    animation-delay: 300ms;
}

.hero-trust {
    animation-delay: 400ms;
}

.hero-image-wrap {
    animation-delay: 500ms;
}


.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
/* ═══════════════════ Responsive ═══════════════════ */
@media (max-width: 991.98px) {
    .hero-section { padding: 60px 0 50px; text-align: center; }
    .hero-eyebrow, .hero-buttons { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-trust { margin-inline: auto; }
    .hero-subtitle { margin-inline: auto; }
    .section-header.section-header-split { flex-direction: column; text-align: center; gap: 1rem; }
}
@media (max-width: 767.98px) {
    body { padding-top: 70px; }
    .main-navbar {
        width: 100%;
        max-width: 100vw;
        overflow-x: clip;
    }
    .main-navbar .container,
    .main-navbar .container-fluid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        gap: .5rem;
    }
    .main-navbar .navbar-brand,
    .main-navbar .hafanwp {
        display: flex;
        align-items: center;
        min-width: 0;
        max-width: calc(100% - 3.5rem);
        margin-inline-end: 0;
        overflow: hidden;
    }
    .main-navbar .navbar-brand {
        flex: 0 1 auto;
    }
    .main-navbar .hafanwp .logo,
    .main-navbar .navbar-brand .logo,
    .main-navbar .navbar-brand img {
        display: block;
        width: auto !important;
        max-width: min(100%, 100px) !important;
        max-height: 52px;
        object-fit: contain;
    }
    .main-navbar .navbar-toggler {
        flex: 0 0 auto;
        margin-inline-start: auto;
    }
    .main-navbar .navbar-collapse {
        min-width: 0;
        max-width: 100%;
    }
    .hero-section,
    .hero-section ~ section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .hero-section .container,
    .hero-section ~ section .container,
    .hero-section .row > *,
    .hero-section ~ section .row > * {
        min-width: 0;
        max-width: 100%;
    }
    .hero-section .row,
    .hero-section ~ section .row {
        width: auto;
        max-width: none;
    }
    .hero-searchbar,
    .hero-owner-card,
    .restaurant-card,
    .blog-card,
    .restaurant-showcase,
    .cta-wrap {
        min-width: 0;
        max-width: 100%;
    }
    .section    { padding: 50px 0; }
    .stats-section { padding: 40px 0; }
    .section-header { margin-bottom: 2rem; }
    .hero-trust { gap: .75rem; padding: .75rem 1rem; }
    .hero-trust-item strong { font-size: 1rem; }
    .hero-trust-item span   { font-size: .7rem; }
    .navbar-nav .nav-link {
        margin: .2rem 0;
        text-align: center;
    }
    .showcase-overlay { padding: 1.25rem; }
    .cta-wrap { padding: 1.75rem; }
}
@media (max-width: 480px) {
    .hero-section { padding-inline: 0; }
    .hero-section .container,
    .hero-section ~ section .container {
        padding-inline: .875rem;
    }
    .hero-searchbar .input-group,
    .hero-searchbar .form-control,
    .hero-searchbar .form-select {
        min-width: 0;
        width: 100%;
    }
    .hero-eyebrow {
        max-width: 100%;
        white-space: normal;
    }
    .hero-buttons .btn { width: 100%; }
    .btn-lg { padding: .75rem 1.25rem; font-size: .95rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   قوانین ریسپانسیو مخصوص صفحات داخلی (درباره‌ی ما، تماس با ما، جستجو/بلاگ،
   صفحه‌ی ۴۰۴). قبلاً این قوانین در ۴ بلوک جدای @media (max-width: 768px)
   در نقاط پراکنده‌ی این فایل (نزدیک هر بخش مربوطه) تعریف شده بودند که
   نگه‌داری و پیش‌بینیِ رفتار موبایل رو سخت می‌کرد. همه بدون کم‌وکاست این‌جا
   یک‌جا جمع شدن (breakpoint هم با بقیه‌ی فایل یکدست شد: 767.98px).
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* از بخش «درباره‌ی ما» (timeline) */
    .timeline::before { right: 30px; }
    .timeline-item { flex-direction: row !important; }
    .timeline-date { flex: 0 0 80px; margin-left: 1rem; }
    .timeline-content { flex: 1; }
    .timeline-content::before { right: -30px !important; left: auto !important; }
    .hero-stats .stat-number { font-size: 2rem; }

    /* از بخش «تماس با ما» */
    .contact-hero { padding: 60px 0; margin-bottom: 60px; }
    .contact-form-card { padding: 1.5rem; }
    .contact-info-sidebar { position: static; margin-bottom: 2rem; }

    /* از بخش «جستجو / لیست بلاگ» */
    .search-sidebar { position: static; margin-bottom: 2rem; }
    .search-result-item .row > div { margin-bottom: 1rem; }
    .search-result-item .row > div:last-child { margin-bottom: 0; }

    /* از بخش «صفحه‌ی ۴۰۴» */
    .error-number { font-size: 4rem; }
    .ghost { width: 80px; height: 80px; margin: 0 1rem; }
    .face { width: 40px; }
    .eye { width: 15px; height: 15px; }
    .mouth { width: 20px; height: 10px; }
    .error-stats .row { flex-direction: column; gap: 1rem; }
    .error-actions .d-flex { flex-direction: column; align-items: center; }
    .error-actions .btn { width: 100%; max-width: 300px; }
}


/* ═══════════════════ درباره‌ی ما (about) ═══════════════════ */
.hero-section-about {
   background: linear-gradient(135deg, #000000 0%, #111111 65%, #b8860b 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    top: -4px;
}

.hero-section-about::before {
    /* توجه: در نسخه‌ی قبلی اینجا یک تصویر background (pngtree-cartoon-...) لود
       می‌شد که در پوشه‌ی assets/images اصلاً وجود نداشت (خطای 404 در هر بار
       بارگذاری صفحه). چون نمی‌شه بدون تصویر واقعی حدس زد طرح اصلی چی بوده،
       به‌جاش یک تکسچر ظریف و هم‌رنگ با پالت سایت (طلایی/تیره) فقط با CSS
       ساخته شده که همون افکت پس‌زمینه‌ی تزئینی رو بدون هیچ درخواست شبکه‌ی
       ناموفقی می‌ده. اگر تصویر اصلی رو دارید، کافیه همین url() رو با مسیر
       درست جایگزین کنید.
    */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(217,165,58,.35) 0, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(217,165,58,.25) 0, transparent 50%);
    opacity: 0.35;
    pointer-events: none;
}

.min-vh-80 {
    min-height: 80vh;
}

.floating-elements {
    position: relative;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.floating-element.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
     color:#FFF;
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
     color:#FFF;
}

.mission-card, .vision-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mission-card::before, .vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    border-radius: 0 0 0 100px;
}

.mission-icon, .vision-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.mission-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.vision-icon {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.mission-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.mission-list li:last-child {
    border-bottom: none;
}

.vision-goals {
    margin-top: 1.5rem;
}

.goal-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.goal-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: 1rem;
    flex-shrink: 0;
}

.value-card {
    padding: 2rem 1rem;
}

.value-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.value-icon.trust { background: linear-gradient(135deg, #10b981, #059669); }
.value-icon.innovation { background: linear-gradient(135deg, #f59e0b, #d97706); }
.value-icon.quality { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.value-icon.community { background: linear-gradient(135deg, #ef4444, #dc2626); }

.team-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(229, 62, 62, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #FF4E0D;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-links a i {
    width: 1em;
    height: 1em;
    line-height: 1;
    display: inline-block;
}

.social-links a:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}
.team-info {
    padding: 1.5rem;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 120px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 0 0 calc(50% - 80px);
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -30px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -30px;
}



.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 0;
}

/*=========================contact========================*/

.contact-hero {
    background: linear-gradient(135deg, #000000 0%, #111111 65%, #b8860b 100%);
    padding: 80px 0;
    margin-bottom: 80px;
   top: -10px;
}

.contact-info-sidebar {
    position: sticky;
    top: 100px;
}

.contact-info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.contact-details {
    flex-grow: 1;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
}

.social-link.whatsapp { background: #25D366; }
.social-link.telegram { background: #0088cc; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.email { background: var(--primary-color); }

.quick-faq .accordion-button {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

.quick-faq .accordion-body {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

.contact-form-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(165, 33, 33, 0.1);
}

.map-card {
    border-radius: 1rem;
    overflow: hidden;
}

.support-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.support-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.support-icon.phone { background: linear-gradient(135deg, #10b981, #059669); }
.support-icon.email { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.support-icon.chat { background: linear-gradient(135deg, #f59e0b, #d97706); }
.support-icon.social { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/*==========================blog (بلاگ لیست/صفحه‌ی تک‌مقاله) =======================*/

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-gradient-primary {
   background: linear-gradient(135deg, #000000 0%, #111111 65%, #b8860b 100%);
}

/*==============singel blog================*/

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-right: 4px solid var(--primary-color);
    padding-right: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-text);
}

.blog-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    overflow-wrap: anywhere;
}

.author-card {
    border-right: 4px solid var(--primary-color);
    padding-right: 1rem;
}

/*==================================search=============================*/

.search-sidebar {
    position: sticky;
    top: 100px;
}

.filter-group {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.5rem;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.search-sidebar .price-badge {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--success-color);
    color: white;
    border-radius: 4px;
    text-align: center;
    line-height: 24px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.popular-searches {
    max-height: 200px;
    overflow-y: auto;
}

.active-filters {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
}

.search-result-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-result-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.no-results {
    background: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.no-results-icon {
    opacity: 0.5;
}

.suggestions {
    max-width: 400px;
    margin: 0 auto;
}

.result-actions .rating {
    font-size: 0.9rem;
}

/*=================404===================*/

.error-animation {
    padding: 2rem 0;
}

.error-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    position: relative;
}

.number-4 {
    animation: bounce 2s infinite;
}

.ghost {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50% 50% 0 0;
    position: relative;
    margin: 0 2rem;
    animation: float 3s ease-in-out infinite;
}

.face {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

.eye {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 0;
}

.eye.left {
    left: 0;
}

.eye.right {
    right: 0;
}

.mouth {
    width: 30px;
    height: 15px;
    background: white;
    border-radius: 0 0 15px 15px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

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

.error-stats .stat {
    text-align: center;
    padding: 1rem;
}

.error-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.error-stats .stat-label {
    font-size: 0.875rem;
    color: var(--gray-text);
}

.solution-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.solution-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.useful-links {
    max-width: 500px;
    margin: 0 auto;
}

/*=========================category=========================*/
.category-hero {
    padding: 80px 0;
    color: white;
    background: linear-gradient(135deg, #000000 0%, #111111 65%, #b8860b 100%);
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-light .breadcrumb-item.active {
    color: white;
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.category-stats .stat {
    text-align: center;
}

.category-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color:#FFF;
}

.category-stats .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
     color:#FFF;
}

.category-icon {
    opacity: 0.8;
}

.view-grid .col-xl-4 {
    display: block;
}

.view-list .col-xl-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

.view-list .restaurant-card {
    flex-direction: row;
    height: auto;
}

.view-list .restaurant-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.view-list .card-body {
    flex-grow: 1;
    min-width: 0;
}

/* کنترل شکست محتوا در ردیف‌ها و کارت‌های دارای متن پویا */
.restaurant-card,
.restaurant-card .card-body,
.search-result-item,
.result-content,
.contact-details,
.timeline-content,
.blog-content {
    min-width: 0;
}

.restaurant-card .card-title,
.restaurant-card .card-text,
.result-content,
.contact-details,
.blog-content {
    overflow-wrap: anywhere;
}

.pagination {
    flex-wrap: wrap;
    gap: .25rem;
}

@media (max-width: 767.98px) {
    .view-list .restaurant-card {
        flex-direction: column;
    }

    .view-list .restaurant-image {
        width: 100%;
        height: auto;
    }

    .hero-owner-card,
    .mission-card,
    .vision-card,
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content h2 { font-size: 1.45rem; }
    .blog-content h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hero-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .hero-trust-divider { display: none; }

    .showcase-overlay { padding: 1rem; }

    .showcase-desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
}

@media (hover: none), (pointer: coarse) {
    .stat-item:hover,
    .category-card:hover,
    .restaurant-card:hover,
    .blog-card:hover,
    .why-card:hover,
    .team-card:hover,
    .support-card:hover,
    .solution-card:hover,
    .btn:hover {
        transform: none;
    }
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.quick-filters .form-select-sm {
    font-size: 0.875rem;
}

.badge-cat.featured-badge {
    top: .85rem; right: .85rem;
    background: var(--grad-gold);
    text-align: center;
}
.badge-cat.price-badge {
    bottom: .85rem; right: .85rem;
    background: rgba(255,255,255,.95);
    color: var(--success-color);
    text-align: center;
    line-height: 1.4;
    width: auto;
    padding: .25rem .5rem;
    height: auto;
}