/* ============================================================
   کافه هوژ | لندینگ موبایل
   همه‌ی اندازه‌ها نسبت به عرض صفحه (حداکثر ۴۸۰px) مقیاس می‌شوند
   ============================================================ */

/* اگر فایل فونت را به پوشه‌ی fonts اضافه کردید، این بخش را از کامنت دربیاورید
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
*/

:root {
  --cream: #f6eee2;
  --cream-2: #f1e6d4;
  --green: #4b5d27;
  --green-d: #3d4d1f;
  --orange: #e3963a;
  --ink: #2c3320;
  --line: rgba(120, 95, 55, .28);

  /* عرض مبنا: عرض صفحه تا سقف ۴۸۰ */
  --s: min(100vw, 480px);
  --pad: calc(var(--s) * .032);
  --gap: calc(var(--s) * .02);
  --r: calc(var(--s) * .047);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Vazirmatn", "Vazir", "IRANSansX", "IRANSans", Tahoma, "Segoe UI", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- صفحه ---------- */
.page {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 var(--pad) calc(var(--s) * .21);
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 18%, #faf4ea 0%, rgba(250, 244, 234, 0) 70%),
    var(--cream);
}

@media (min-width: 481px) {
  body { background: #e9dfcd; }
  .page { box-shadow: 0 0 60px rgba(60, 45, 20, .15); }
}

/* ---------- برگ تزئینی ---------- */
.leaves {
  position: absolute;
  top: calc(var(--s) * -.03);
  left: calc(var(--s) * -.05);
  width: calc(var(--s) * .3);
  filter: blur(calc(var(--s) * .006));
  opacity: .5;
  pointer-events: none;
  transform-origin: top left;
  animation: sway 9s ease-in-out infinite alternate;
}

@keyframes sway {
  from { transform: rotate(-2deg); }
  to   { transform: rotate(2.5deg); }
}

/* ---------- هدر ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-top: calc(var(--s) * .07);
}

.logo {
  height: calc(var(--s) * .47);
  width: auto;
  margin: 0 auto;
  animation: pop .8s cubic-bezier(.2, .8, .2, 1) both;
}

.title {
  margin-top: calc(var(--s) * .012);
  font-size: calc(var(--s) * .073);
  font-weight: 800;
  line-height: 1.25;
  color: var(--green);
  letter-spacing: -.01em;
}

.tagline {
  margin-top: calc(var(--s) * .014);
  font-size: max(13px, calc(var(--s) * .037));
  font-weight: 500;
  color: #26291d;
  white-space: nowrap;
}
.tagline i { font-style: normal; margin: 0 .25em; font-weight: 400; }

/* ---------- لیست ---------- */
.links {
  position: relative;
  margin-top: calc(var(--s) * .05);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.row { display: grid; gap: calc(var(--s) * .02); }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: repeat(3, 1fr); }
.row--addr { grid-template-columns: 35% 1fr; }
.row--addr .card--addr { order: 2; }   /* آدرس چپ */
.row--addr .card--route { order: 1; }  /* مسیریابی راست */

/* ---------- کارت‌ها ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: row-reverse; /* آیکن چپ، فلش راست مثل طرح اصلی */
  align-items: center;
  gap: calc(var(--s) * .025);
  min-height: calc(var(--s) * .11);
  padding: 0 calc(var(--s) * .035);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) forwards;
}

.card--cream {
  background: linear-gradient(180deg, #f6eddf 0%, #efe3cf 100%);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(110, 85, 45, .10), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.card--green {
  background:
    radial-gradient(90% 140% at 12% 50%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, #54672d 0%, var(--green-d) 100%);
  color: #f7efe1;
  box-shadow: 0 8px 18px rgba(55, 70, 25, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.card--wide { min-height: calc(var(--s) * .158); padding: 0 calc(var(--s) * .05); }

a.card:active { transform: scale(.975) !important; filter: brightness(.96); }
@media (hover: hover) {
  a.card:hover, a.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(80, 65, 30, .2); }
}

/* متن */
.text { display: flex; flex-direction: column; gap: calc(var(--s) * .006); min-width: 0; flex: 1; }
.text strong {
  font-size: max(13px, calc(var(--s) * .034));
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.text small {
  font-size: max(10.5px, calc(var(--s) * .026));
  font-weight: 400;
  line-height: 1.6;
  opacity: .85;
}
.card--green .text strong { color: #f9f1e3; font-size: max(13px, calc(var(--s) * .033)); }
.card--green .text small { color: #eadfc9; }

.card--wide .text { flex: 0 1 auto; }
.card--wide .text strong { white-space: nowrap; }

/* آیکن */
.ico { flex: none; display: grid; place-items: center; width: calc(var(--s) * .085); height: calc(var(--s) * .085); }
.ico svg {
  width: 100%; height: 100%;
  fill: none; stroke: var(--green); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; overflow: visible;
}
.ico--light svg { stroke: #f6eee2; stroke-width: 2.4; }
.card--wide .ico { width: calc(var(--s) * .095); height: calc(var(--s) * .095); }
.card--cream .ico { width: calc(var(--s) * .075); height: calc(var(--s) * .075); }
.ico svg .dot { fill: var(--green); stroke: none; }
.ico svg.solid { width: 60%; }
.ico svg.solid path { fill: var(--green); stroke: none; }
.ico svg.solid .hole { fill: #f1e6d4; stroke: none; }

/* جداکننده */
.divider { flex: none; width: 1px; align-self: stretch; margin: calc(var(--s) * .04) calc(var(--s) * .008); background: rgba(247, 239, 225, .55); }
.divider--dark { background: rgba(80, 65, 35, .45); margin: calc(var(--s) * .035) calc(var(--s) * .004); }
.divider--light { background: rgba(247, 239, 225, .5); margin: calc(var(--s) * .022) calc(var(--s) * .02); }

/* فلش */
.chev { flex: none; width: calc(var(--s) * .03); height: calc(var(--s) * .03); margin: 0; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chev--light { stroke: #f6eee2; }
.card--wide .chev { position: absolute; right: calc(var(--s) * .035); top: 50%; translate: 0 -50%; width: calc(var(--s) * .034); height: calc(var(--s) * .034); }
.card--wide { padding-right: calc(var(--s) * .27); }

/* تصاویر داخل کارت */
.art { position: absolute; pointer-events: none; }
.art img { width: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.art--beans { right: calc(var(--s) * .085); top: 50%; width: calc(var(--s) * .2); translate: 0 -48%; transition: transform .5s ease; }
.card--wide:hover .art--beans, .card--wide:active .art--beans { transform: rotate(-6deg) scale(1.05); }
.art--latte { right: calc(var(--s) * -.01); top: calc(var(--s) * -.004); width: calc(var(--s) * .3); }
.art--latte img { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.card--menu { padding-right: calc(var(--s) * .31); }

/* کارت‌های دوتایی */
.row--2 .card { padding: 0 calc(var(--s) * .035) 0 calc(var(--s) * .03); }
.row--2 .text strong { font-size: max(11.5px, calc(var(--s) * .029)); white-space: nowrap; }
.row--2 .card { gap: calc(var(--s) * .018); }

/* مسیریابی / آدرس */
.row--addr .card { min-height: calc(var(--s) * .144); }
.row--addr .card--addr { padding: 0 calc(var(--s) * .04); gap: calc(var(--s) * .03); cursor: default; }
.card--addr .text small { font-size: max(10px, calc(var(--s) * .0235)); opacity: .9; }
.card--addr .text strong { font-size: max(13px, calc(var(--s) * .035)); }
.card--route { padding: 0 calc(var(--s) * .028); gap: calc(var(--s) * .014); }
.card--route .text strong { font-size: max(11px, calc(var(--s) * .028)); line-height: 1.55; white-space: nowrap; }
.card--route .ico { width: calc(var(--s) * .065); height: calc(var(--s) * .065); }
.card--route .chev { margin: 0; width: calc(var(--s) * .028); }

/* ساعت کاری */
.hours {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: calc(var(--s) * .02);
  min-height: calc(var(--s) * .094);
  padding: 0 calc(var(--s) * .04);
  border-radius: 999px;
  color: #f9f1e3;
  background: linear-gradient(180deg, #54672d 0%, var(--green-d) 100%);
  box-shadow: 0 8px 18px rgba(55, 70, 25, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: 0; transform: translateY(14px);
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) forwards;
}
.hours .ico { width: calc(var(--s) * .06); height: calc(var(--s) * .06); }
.hours__label { font-size: max(12.5px, calc(var(--s) * .031)); font-weight: 500; white-space: nowrap; }
.hours__time { flex: 1; text-align: center; font-size: max(13px, calc(var(--s) * .035)); font-weight: 700; white-space: nowrap; }

/* سه کاشی پایین */
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--s) * .012);
  min-height: calc(var(--s) * .165);
  padding: calc(var(--s) * .015) calc(var(--s) * .01);
  text-align: center;
  border-radius: calc(var(--s) * .042);
  background: linear-gradient(180deg, #f6eddf 0%, #efe3cf 100%);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(110, 85, 45, .10), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .18s ease, box-shadow .18s ease;
  opacity: 0; transform: translateY(14px);
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) forwards;
}
.tile:active { transform: scale(.96) !important; }
.tile svg { width: calc(var(--s) * .062); height: calc(var(--s) * .062); fill: none; stroke: var(--green); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tile span { font-size: max(12.5px, calc(var(--s) * .032)); font-weight: 700; line-height: 1.5; color: var(--ink); }

/* ---------- فوتر ---------- */
.foot { margin-top: calc(var(--s) * .07); text-align: center; position: relative; }
.foot__brand { display: flex; align-items: center; justify-content: center; gap: calc(var(--s) * .03); }
.foot__brand .line { flex: 1; max-width: 32%; height: 1px; background: rgba(60, 55, 40, .55); }
.foot__brand .bean { width: calc(var(--s) * .05); height: calc(var(--s) * .05); }
.foot__name { margin-top: calc(var(--s) * .014); font-family: "Vazirmatn", system-ui, sans-serif; font-size: max(11px, calc(var(--s) * .026)); letter-spacing: .32em; padding-inline-start: .32em; color: #2b2b24; font-weight: 500; direction: ltr; }

.waves { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(var(--s) * .2); pointer-events: none; }

/* ---------- انیمیشن‌ها ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }

.links > *:nth-child(1) { animation-delay: .15s; }
.links > *:nth-child(2) .card:nth-child(1) { animation-delay: .22s; }
.links > *:nth-child(2) .card:nth-child(2) { animation-delay: .27s; }
.links > *:nth-child(3) { animation-delay: .32s; }
.links > *:nth-child(4) .card:nth-child(1) { animation-delay: .38s; }
.links > *:nth-child(4) .card:nth-child(2) { animation-delay: .43s; }
.links > *:nth-child(5) .card:nth-child(1) { animation-delay: .48s; }
.links > *:nth-child(5) .card:nth-child(2) { animation-delay: .53s; }
.links > *:nth-child(6) { animation-delay: .58s; }
.links > *:nth-child(7) .tile:nth-child(1) { animation-delay: .64s; }
.links > *:nth-child(7) .tile:nth-child(2) { animation-delay: .69s; }
.links > *:nth-child(7) .tile:nth-child(3) { animation-delay: .74s; }

/* افکت ریپل لمسی */
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
.tile .ripple, .card--cream .ripple { background: rgba(75, 93, 39, .18); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.tile { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .card, .hours, .tile { opacity: 1; transform: none; }
}

/* گوشی‌های خیلی کوچک */
@media (max-width: 350px) {
  .tagline { white-space: normal; }
  .hours { gap: 6px; padding: 0 12px; }
}
