/* ==========================================================
   Sami Bakery v2 - theme
   RTL / Persian - Kentico 12 Portal Engine
   همه رنگ‌ها و فونت‌ها از متغیرهای :root خوانده می‌شوند.
   ========================================================== */

/* فونت‌ها در fonts.css و به‌صورت محلی (بدون Google Fonts) بارگذاری می‌شوند. */

:root {
  /* برند: آبی لوگو + کرم نان + کاراملی پوسته نان */
  --sami-blue: #3073e2;          /* رنگ دقیق لوگو */
  --sami-blue-700: #1f5bc0;
  --sami-navy: #0f2a4a;          /* تیترها و متن تیره */
  --sami-caramel: #c8873a;       /* رنگ پوسته نان؛ جایگزین طلایی */
  --sami-caramel-600: #a96c25;
  --sami-caramel-100: #f6e6cf;
  --sami-cream: #fbf6ee;         /* پس‌زمینه گرم */
  --sami-cream-200: #f3eadb;
  --sami-berry: #d6454f;         /* فقط برای نشان‌ها (جدید، ویژه) */
  --sami-cocoa: #2b1d16;         /* پس‌زمینه بخش کافه */
  --sami-cocoa-800: #3a2a20;
  --sami-text: #23303f;
  --sami-muted: #6b7684;
  --sami-line: #e8dfd1;
  --sami-white: #fff;

  --font-body: "Vazirmatn", Tahoma, sans-serif;
  --font-display: "Lalezar", "Vazirmatn", sans-serif;

  --r-sm: 10px; --r-md: 18px; --r-lg: 28px;
  --shadow: 0 10px 30px rgba(15, 42, 74, .08);
  --shadow-lg: 0 18px 50px rgba(15, 42, 74, .14);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; direction: rtl; font-family: var(--font-body); font-size: 16px; line-height: 1.9;
  color: var(--sami-text); background: var(--sami-cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sami-blue-700); text-decoration: none; }
a:hover { color: var(--sami-caramel-600); }
h1, h2, h3, h4 { color: var(--sami-navy); line-height: 1.45; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.4em; border-radius: 999px;
  font: 600 15px/1.6 var(--font-body); border: 2px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap; }
.btn--primary { background: var(--sami-blue); color: #fff; }
.btn--primary:hover { background: var(--sami-blue-700); color: #fff; }
.btn--caramel { background: var(--sami-caramel); color: #fff; }
.btn--caramel:hover { background: var(--sami-caramel-600); color: #fff; }
.btn--ghost { border-color: var(--sami-navy); color: var(--sami-navy); background: transparent; }
.btn--ghost:hover { background: var(--sami-navy); color: #fff; }
.btn--light { background: #fff; color: var(--sami-navy); }

/* ---------- Header (Master page) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 238, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--sami-line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.site-logo img { height: 44px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--sami-navy); font-weight: 500; }
.site-nav a:hover, .site-nav .CMSListMenuHighlightedLI > a, .site-nav .CMSListMenuLinkHighlighted,
.site-nav a.is-active { background: var(--sami-caramel-100); color: var(--sami-caramel-600); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 28px; color: var(--sami-navy); cursor: pointer; }
.topbar { background: var(--sami-navy); color: #dfe7f2; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topbar a { color: #fff; }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 76px 0 auto 0; background: var(--sami-cream); border-bottom: 1px solid var(--sami-line);
    padding: 12px 16px 20px; display: none; box-shadow: var(--shadow); }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-header__actions .btn--ghost { display: none; }
  .topbar .topbar__hours { display: none; }
  .site-header__actions .btn { padding: .45em 1em; font-size: 14px; }
  .site-logo img { height: 36px; }
}
@media (max-width: 860px) { .hero__logo { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--white { background: #fff; }
.section--cream { background: var(--sami-cream-200); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow { display: inline-block; color: var(--sami-caramel-600); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); margin: 4px 0 8px; }
.section-head p { color: var(--sami-muted); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: 56px 0 48px; background:
  radial-gradient(circle at 15% 30%, rgba(200, 135, 58, .16), transparent 40%),
  radial-gradient(circle at 85% 0%, rgba(48, 115, 226, .10), transparent 40%), var(--sami-cream); }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 52px); margin: 0; }
.page-hero p { color: var(--sami-muted); max-width: 640px; margin: 8px 0 0; }
.breadcrumb { font-size: 13px; color: var(--sami-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--sami-muted); }
.breadcrumb span.sep { margin: 0 6px; }

/* ---------- Home hero ---------- */
.hero { padding: 48px 0 32px; overflow: hidden; background:
  radial-gradient(circle at 10% 20%, rgba(200, 135, 58, .18), transparent 35%),
  radial-gradient(circle at 90% 10%, rgba(48, 115, 226, .12), transparent 35%), var(--sami-cream); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.hero__logo { width: min(360px, 80%); margin-bottom: 10px; }
.hero__since { color: var(--sami-caramel-600); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.hero__since::before, .hero__since::after { content: ""; width: 36px; height: 2px; background: var(--sami-caramel); }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); margin: 8px 0; }
.hero h1 small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .42em; color: var(--sami-blue-700); }
.hero__lead { color: var(--sami-muted); font-size: 17px; max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.hero__trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--sami-navy); }
.hero__trust i { color: var(--sami-caramel); margin-left: 4px; }
.hero__visual img { width: 100%; border-radius: 50%; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { margin-inline: auto; } .hero__since { justify-content: center; }
  .hero__lead { margin-inline: auto; } .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 420px; margin: 0 auto; grid-row: 1; }
}

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { background: #fff; border-radius: var(--r-md); padding: 18px 14px; text-align: center; box-shadow: var(--shadow);
  color: var(--sami-navy); transition: .2s; border: 1px solid transparent; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--sami-caramel); color: var(--sami-navy); }
.cat-card img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 8px; }
.cat-card strong { display: block; font-size: 16px; }
.cat-card small { color: var(--sami-muted); font-size: 13px; }
@media (max-width: 991px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card { position: relative; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: .2s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card__img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 14px; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card__cat { font-size: 12px; color: var(--sami-caramel-600); font-weight: 600; }
.product-card h3 { font-size: 17px; margin: 0; }
.product-card h3 a { color: var(--sami-navy); }
.product-card p { font-size: 14px; color: var(--sami-muted); margin: 0; flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.product-card__unit { font-size: 13px; color: var(--sami-muted); }
.badge { position: absolute; top: 12px; right: 12px; background: var(--sami-berry); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; }
.badge--blue { background: var(--sami-blue); }
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__body { padding: 4px 12px 12px; }
  .product-card p { display: none; }
  .product-card h3 { font-size: 15px; }
  .product-card__foot { flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
  .product-card__foot .btn { justify-content: center; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.chip { padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--sami-line); color: var(--sami-navy);
  font: 500 14px/1.8 var(--font-body); cursor: pointer; }
.chip.is-active, .chip:hover { background: var(--sami-navy); color: #fff; border-color: var(--sami-navy); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail__media { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.product-detail__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-detail__thumbs img { width: 72px; height: 72px; object-fit: contain; background: var(--sami-cream); border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; }
.product-detail__thumbs img.is-active { border-color: var(--sami-caramel); }
.spec-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.spec-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--sami-line); padding-bottom: 6px; }
.spec-list span { color: var(--sami-muted); }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Café teaser & menu ---------- */
.cafe-dark { background: var(--sami-cocoa); color: #efe4d6; }
.cafe-dark h2, .cafe-dark h3 { color: #fff; }
.cafe-dark .section-head p { color: #cdbca8; }
.cafe-dark .eyebrow { color: #e5b06f !important; }
.cafe-teaser { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.cafe-teaser ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.cafe-teaser li { display: flex; justify-content: space-between; border-bottom: 1px dashed #5a4636; padding-bottom: 8px; }
.cafe-teaser li span:last-child { color: #e5b06f; font-weight: 700; }
.cafe-teaser__img { border-radius: var(--r-lg); background: #fff; padding: 20px; }
@media (max-width: 860px) { .cafe-teaser { grid-template-columns: 1fr; } }

.menu-tabs { position: sticky; top: 76px; z-index: 10; background: var(--sami-cocoa); padding: 12px 0; margin-bottom: 24px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.menu-tabs a { white-space: nowrap; padding: 6px 16px; border-radius: 999px; border: 1px solid #5a4636; color: #efe4d6; font-size: 14px; }
.menu-tabs a:hover, .menu-tabs a.is-active { background: #e5b06f; color: var(--sami-cocoa); border-color: #e5b06f; }
.menu-cat { margin-bottom: 48px; scroll-margin-top: 150px; }
.menu-cat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.menu-cat__head i { font-size: 26px; color: #e5b06f; }
.menu-cat__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 0; }
.menu-cat__head p { margin: 0; color: #cdbca8; font-size: 14px; }
.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.menu-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px;
  border-radius: var(--r-md); background: var(--sami-cocoa-800); }
.menu-item__img { width: 72px; height: 72px; border-radius: 14px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.menu-item__img img { width: 100%; height: 100%; object-fit: contain; }
.menu-item__img i { font-size: 30px; color: var(--sami-caramel); }
.menu-item h3 { font-size: 16px; margin: 0; }
.menu-item p { margin: 0; font-size: 13px; color: #cdbca8; line-height: 1.7; }
.menu-item__price { text-align: left; color: #e5b06f; font-weight: 700; white-space: nowrap; font-size: 15px; }
.menu-item__price small { display: block; color: #cdbca8; font-weight: 400; font-size: 11px; }
.menu-item.is-unavailable { opacity: .45; }
.menu-item .tag { display: inline-block; font-size: 11px; padding: 0 8px; border-radius: 999px; background: #5a4636; color: #f3d9b5; margin-inline-start: 6px; vertical-align: middle; }
.menu-note { text-align: center; color: #cdbca8; font-size: 13px; }
@media (max-width: 860px) { .menu-list { grid-template-columns: 1fr; } }

/* ---------- Feature / why us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow); }
.feature i { font-size: 30px; color: var(--sami-caramel); }
.feature h3 { font-size: 18px; margin: 10px 0 6px; }
.feature p { color: var(--sami-muted); font-size: 14px; margin: 0; }
@media (max-width: 991px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Split / CTA ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split__img { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.cta-band { background: linear-gradient(135deg, var(--sami-blue-700), var(--sami-navy)); color: #fff; border-radius: var(--r-lg);
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-family: var(--font-display); font-weight: 400; margin: 0; font-size: 32px; }
.cta-band p { margin: 0; color: #d9e4f5; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-right: 52px; }
.steps li::before { content: counter(s); position: absolute; right: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--sami-caramel-100); color: var(--sami-caramel-600); font-weight: 800; display: grid; place-items: center; }

/* ---------- Forms (Kentico BizForm friendly) ---------- */
.form-card { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.form-card label, .form-card .EditingFormLabel { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; color: var(--sami-navy); }
.form-card input[type=text], .form-card input[type=tel], .form-card input[type=email], .form-card input[type=date],
.form-card select, .form-card textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--sami-line); border-radius: var(--r-sm);
  font: 15px var(--font-body); background: var(--sami-cream); }
.form-card textarea { min-height: 110px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--sami-blue); border-color: transparent; }
.form-card .FormButton, .form-card button[type=submit] { margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Contact / branches ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-box { background: #fff; border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow); }
.contact-box i { font-size: 26px; color: var(--sami-blue); }
.contact-box h3 { font-size: 17px; margin: 8px 0; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; background: var(--sami-cream-200);
  display: grid; place-items: center; color: var(--sami-muted); }
.map-frame iframe { width: 100%; height: 360px; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 1.4em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stats div { background: #fff; border-radius: var(--r-md); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stats strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; color: var(--sami-blue); }

/* ---------- Footer (Master page) ---------- */
.site-footer { background: var(--sami-navy); color: #c9d4e3; padding: 56px 0 0; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 16px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #e5b06f; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.site-footer__logo { width: 180px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 18px; }
.site-footer__copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 16px 0; text-align: center; font-size: 13px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--sami-caramel);
  color: #fff; display: grid; place-items: center; font-size: 22px; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.scrolled .to-top { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--sami-caramel-600); }

/* Kentico edit mode: zones should not be hidden by sticky header */
.EditMode .site-header, .DesignMode .site-header { position: static; }
