/* =========================================================
   شوچره — Design Tokens
   الهام‌گرفته از کاشی‌کاری قهوه‌خانه‌های سنتی ایرانی:
   فیروزه‌ای تیره، طلایی زعفرانی و قرمز اناری
   ========================================================= */
:root{
  --petrol:        #0F4C4A;
  --petrol-dark:    #0A3634;
  --petrol-light:   #1B6863;
  --saffron:        #E8A93B;
  --saffron-light:  #F4C877;
  --pomegranate:    #A63446;
  --parchment:      #F6EFE4;
  --parchment-alt:  #EFE1C8;
  --ink:            #241C15;
  --ink-soft:       #5B4E3F;
  --white:          #FFFDF9;

  --status-pending:   #C9862B;
  --status-preparing: #2B6CB0;
  --status-delivered: #2F8A4A;

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

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(36, 28, 21, .10);
  --shadow-lift: 0 16px 40px rgba(36, 28, 21, .16);

  --container: 1140px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul{ margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--petrol);
  line-height: 1.4;
  margin: 0 0 .5em;
}

h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2{ font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em; color: var(--ink-soft); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible{
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================
   دکمه‌ها
   ========================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn--primary{ background: var(--saffron); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn--primary:hover{ background: var(--saffron-light); }
.btn--outline{ background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover{ background: rgba(255,255,255,.12); }
.btn--dark{ background: var(--petrol); color: var(--white); }
.btn--dark:hover{ background: var(--petrol-light); }
.btn--block{ width: 100%; justify-content: center; }
.btn--sm{ padding: 9px 18px; font-size: .85rem; }
.btn[disabled]{ opacity: .5; cursor: not-allowed; transform: none; }

/* =========================
   هدر و ناوبری
   ========================= */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: var(--petrol);
  box-shadow: 0 2px 14px rgba(0,0,0,.15);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container); margin: 0 auto;
}
.nav__logo{
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--saffron);
  letter-spacing: .5px;
}
.nav__logo span{ color: var(--white); }
.nav__links{
  display: flex; gap: 28px; align-items: center;
}
.nav__links a{
  color: var(--white); font-weight: 500; font-size: .96rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav__links a:hover, .nav__links a.active{ border-color: var(--saffron); color: var(--saffron-light); }
.nav__toggle{
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.6rem; cursor: pointer; padding: 4px 8px;
}

@media (max-width: 860px){
  .nav__toggle{ display: block; }
  .nav__links{
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--petrol-dark);
    flex-direction: column; align-items: flex-start;
    padding: 10px 24px 20px; gap: 14px;
    display: none;
  }
  .nav__links.open{ display: flex; }
}

/* =========================
   هیرو
   ========================= */
.hero{
  position: relative;
  background: linear-gradient(180deg, var(--petrol) 0%, var(--petrol-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 76px 0 96px;
}
.hero .container{
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero__eyebrow{
  color: var(--saffron); font-weight: 700; letter-spacing: 2px; font-size: .85rem;
  display: inline-block; margin-bottom: 14px;
}
.hero__title{ color: var(--white); margin-bottom: .3em; }
.hero__title em{ color: var(--saffron); font-style: normal; }
.hero__subtitle{ color: rgba(255,253,249,.82); font-size: 1.08rem; max-width: 46ch; }
.hero__actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero__art{
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 320px;
}
.hero__cup{
  position: relative; width: 150px; height: 120px;
}
.hero__cup .cup-body{
  position: absolute; bottom: 0; width: 150px; height: 90px;
  background: var(--saffron);
  border-radius: 0 0 70px 70px / 0 0 46px 46px;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.08);
}
.hero__cup .cup-handle{
  position: absolute; left: -34px; bottom: 18px; width: 44px; height: 44px;
  border: 10px solid var(--saffron); border-radius: 50%;
  border-inline-start-color: transparent; border-bottom-color: transparent;
  transform: rotate(20deg);
}
.hero__cup .cup-saucer{
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  width: 190px; height: 18px; background: var(--saffron-light); border-radius: 50%;
  opacity: .9;
}
.steam{
  position: absolute; bottom: 92px; width: 8px; height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 100%);
  border-radius: 6px; opacity: 0;
}
.steam1{ left: 40%; animation: rise 3.4s ease-in-out infinite; }
.steam2{ left: 55%; animation: rise 3.4s ease-in-out .9s infinite; }
.steam3{ left: 48%; animation: rise 3.4s ease-in-out 1.8s infinite; }
@media (prefers-reduced-motion: no-preference){
  @keyframes rise{
    0%   { opacity: 0; transform: translateY(0) scaleX(1); }
    30%  { opacity: .8; }
    100% { opacity: 0; transform: translateY(-56px) scaleX(1.6); }
  }
}

@media (max-width: 860px){
  .hero .container{ grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle{ margin-inline: auto; }
  .hero__actions{ justify-content: center; }
}

/* =========================
   جداکننده کاشی‌کاری (عنصر امضا)
   ========================= */
.tile-divider{
  height: 26px;
  background-color: var(--parchment);
  background-image:
    linear-gradient(45deg, var(--petrol) 25%, transparent 25%, transparent 75%, var(--petrol) 75%),
    linear-gradient(45deg, var(--petrol) 25%, transparent 25%, transparent 75%, var(--petrol) 75%);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
}
.tile-divider--saffron{
  background-image:
    linear-gradient(45deg, var(--saffron) 25%, transparent 25%, transparent 75%, var(--saffron) 75%),
    linear-gradient(45deg, var(--saffron) 25%, transparent 25%, transparent 75%, var(--saffron) 75%);
}

/* =========================
   بخش‌های عمومی
   ========================= */
.section{ padding: 72px 0; }
.section--alt{ background: var(--parchment-alt); }
.section__header{ text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section__eyebrow{
  color: var(--pomegranate); font-weight: 700; font-size: .82rem; letter-spacing: 2px;
}

/* =========================
   کارت‌های منو
   ========================= */
.menu-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.menu-card{
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.menu-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.menu-card__image{
  height: 168px; background: linear-gradient(135deg, var(--petrol-light), var(--petrol));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55);
  font-size: 2.2rem; position: relative;
}
.menu-card__image img{ width: 100%; height: 100%; object-fit: cover; }
.menu-card__body{ padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-card__top{ display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.menu-card__name{ font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.menu-card__price{ color: var(--pomegranate); font-weight: 700; white-space: nowrap; font-size: .95rem; }
.menu-card__desc{ color: var(--ink-soft); font-size: .88rem; margin: 0; flex: 1; }
.menu-card__unavailable{
  position: absolute; inset: 0; background: rgba(36,28,21,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem;
}
.menu-card__add{
  align-self: flex-start; margin-top: 6px; background: var(--petrol); color: var(--white);
  border: none; border-radius: 999px; padding: 8px 18px; font-family: var(--font-body);
  font-weight: 700; font-size: .85rem; cursor: pointer; transition: background .15s ease;
}
.menu-card__add:hover{ background: var(--petrol-light); }
.menu-card__add[disabled]{ background: #ccc; cursor: not-allowed; }

/* =========================
   گالری
   ========================= */
.gallery-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-grid__item{
  aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, var(--saffron-light), var(--saffron));
  display: flex; align-items: center; justify-content: center;
  color: rgba(36,28,21,.45); font-size: 1.8rem;
}
.gallery-grid__item:nth-child(3n+2){ background: linear-gradient(135deg, var(--petrol-light), var(--petrol)); color: rgba(255,255,255,.5); }
.gallery-grid__item:nth-child(3n){ background: linear-gradient(135deg, #c96a78, var(--pomegranate)); color: rgba(255,255,255,.5); }
.gallery-grid__item img{ width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* =========================
   مراحل سفارش (توالی واقعی -> شماره‌گذاری توجیه دارد)
   ========================= */
.steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step{ text-align: center; padding: 0 12px; }
.step__num{
  width: 54px; height: 54px; border-radius: 50%; background: var(--petrol); color: var(--saffron);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 1.4rem; margin: 0 auto 16px;
}
.step__title{ font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.step__desc{ font-size: .9rem; }

@media (max-width: 760px){
  .steps{ grid-template-columns: 1fr; gap: 32px; }
}

/* =========================
   فرم‌ها
   ========================= */
.form-card{
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-soft);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group{ margin-bottom: 18px; }
.form-group label{ display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea{
  width: 100%; padding: 12px 14px; border: 1.5px solid #E4D9C6; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; background: var(--parchment);
  color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  border-color: var(--saffron); outline: none; background: var(--white);
}
.form-group textarea{ min-height: 110px; resize: vertical; }
.form-hint{ font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

.alert{ padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; }
.alert--success{ background: #EAF6EC; color: #2F8A4A; border: 1px solid #2F8A4A; }
.alert--error{ background: #FBEAEC; color: var(--pomegranate); border: 1px solid var(--pomegranate); }

@media (max-width: 700px){
  .form-row{ grid-template-columns: 1fr; }
}

/* =========================
   انتخابگر تاریخ شمسی
   ========================= */
.datepicker{ position: relative; }
.datepicker__display{
  cursor: pointer; padding: 12px 14px; border: 1.5px solid #E4D9C6; border-radius: var(--radius-sm);
  background: var(--parchment); font-size: .95rem; color: var(--ink-soft);
}
.datepicker__display.has-value{ color: var(--ink); font-weight: 600; }
.datepicker__display:hover{ border-color: var(--saffron); }
.datepicker__panel{
  position: absolute; z-index: 30; top: calc(100% + 8px); inset-inline-start: 0;
  width: 300px; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift); padding: 16px; display: none;
}
.datepicker__panel.open{ display: block; }
.datepicker__head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.datepicker__head button{
  background: var(--parchment-alt); border: none; width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; color: var(--petrol);
}
.datepicker__title{ font-weight: 700; color: var(--petrol); font-size: .95rem; }
.datepicker__grid{ display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.datepicker__dow{ font-size: .72rem; color: var(--ink-soft); padding-bottom: 6px; }
.datepicker__cell{
  padding: 8px 0; border-radius: 8px; cursor: pointer; font-size: .85rem; background: none; border: none;
  font-family: var(--font-body); color: var(--ink);
}
.datepicker__cell:hover{ background: var(--parchment-alt); }
.datepicker__cell--muted{ color: #ccc; pointer-events: none; }
.datepicker__cell--disabled{ color: #ddd; pointer-events: none; text-decoration: line-through; }
.datepicker__cell--today{ border: 1.5px solid var(--saffron); }
.datepicker__cell--selected{ background: var(--petrol); color: var(--white); }

/* =========================
   سبد سفارش (منو)
   ========================= */
.category-tabs{
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 34px;
}
.category-tab{
  flex: 0 0 auto; padding: 10px 22px; border-radius: 999px; background: var(--white);
  border: 1.5px solid var(--parchment-alt); font-weight: 600; font-size: .9rem; cursor: pointer;
  font-family: var(--font-body); color: var(--ink-soft);
}
.category-tab.active{ background: var(--petrol); color: var(--white); border-color: var(--petrol); }

.cart-bar{
  position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
  background: var(--petrol); color: var(--white);
  padding: 14px 24px; display: none; align-items: center; justify-content: space-between;
  box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}
.cart-bar.visible{ display: flex; }
.cart-bar__info{ font-size: .92rem; }
.cart-bar__count{ background: var(--saffron); color: var(--ink); border-radius: 50%; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; margin-inline-end: 8px; }

.cart-overlay{
  position: fixed; inset: 0; background: rgba(36,28,21,.5); z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.cart-overlay.open{ display: flex; }
.cart-panel{
  background: var(--white); border-radius: var(--radius-lg); max-width: 460px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 28px;
}
.cart-panel__item{ display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--parchment-alt); }
.cart-panel__item-name{ font-weight: 600; font-size: .92rem; }
.cart-panel__qty{ display: flex; align-items: center; gap: 8px; }
.cart-panel__qty button{ width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--parchment-alt); background: var(--parchment); cursor: pointer; }
.cart-panel__total{ display: flex; justify-content: space-between; font-weight: 700; padding-top: 14px; font-size: 1.05rem; color: var(--pomegranate); }
.cart-panel__close{ position: absolute; top: 18px; inset-inline-end: 18px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-soft); }

/* =========================
   درباره ما
   ========================= */
.team-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.team-card{ text-align: center; }
.team-card__avatar{
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--saffron-light), var(--pomegranate));
  display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff;
}
.team-card__name{ font-weight: 700; }
.team-card__role{ font-size: .84rem; color: var(--ink-soft); }

@media (max-width: 760px){
  .team-grid{ grid-template-columns: 1fr; }
}

/* =========================
   تماس با ما
   ========================= */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info__item{ display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info__icon{
  width: 44px; height: 44px; border-radius: 50%; background: var(--petrol); color: var(--saffron);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.map-embed{ border-radius: var(--radius-md); overflow: hidden; margin-top: 24px; box-shadow: var(--shadow-soft); }
.map-embed iframe{ width: 100%; height: 260px; border: 0; display: block; }

@media (max-width: 860px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* =========================
   فوتر
   ========================= */
.site-footer{ background: var(--petrol-dark); color: rgba(255,253,249,.75); padding: 52px 0 26px; }
.footer__grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer__logo{ font-family: var(--font-display); font-size: 1.5rem; color: var(--saffron); margin-bottom: 10px; }
.footer__title{ color: var(--white); font-weight: 700; margin-bottom: 14px; font-size: .95rem; }
.footer__grid a, .footer__grid p{ color: rgba(255,253,249,.72); font-size: .88rem; }
.footer__links li{ margin-bottom: 8px; }
.footer__bottom{
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align: center;
  font-size: .8rem; color: rgba(255,253,249,.5);
}
@media (max-width: 760px){
  .footer__grid{ grid-template-columns: 1fr; }
}

/* =========================
   پاپ‌آپ تأیید (رزرو/سفارش موفق)
   ========================= */
.confirm-modal-overlay{
  position: fixed; inset: 0; background: rgba(36,28,21,.55); z-index: 500; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.confirm-modal-overlay.open{ display: flex; }
.confirm-modal-box{
  background: var(--white); border-radius: var(--radius-lg); max-width: 380px; width: 100%;
  padding: 38px 28px; text-align: center; box-shadow: var(--shadow-lift);
}
.confirm-modal-icon{ font-size: 2.8rem; margin-bottom: 14px; }
.confirm-modal-box h3{ margin-bottom: 10px; }
.confirm-modal-box p{ margin-bottom: 24px; }

/* =========================
   برچسب وضعیت
   ========================= */
.badge{ display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.badge--available{ background: #EAF6EC; color: #2F8A4A; }
.badge--unavailable{ background: #f1e9e9; color: #9a8f8f; }
