/* ============================================
   HEADER/HERO — دقیقاً مطابق jinx اصلی
   ============================================ */

#hero {
    display: flex;
    height: 80vmin;
    min-height: 260px;
    max-height: 660px;
    margin-bottom: 0;
    overflow: hidden;
    direction: rtl;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.text-png{
    display: flex;
    padding: 0 2rem;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* ── تصویر پس‌زمینه — opacity پایین مثل jinx ── */
.header-img {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url('../../images/cafe.webp');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  /* gradient تاریک روی تصویر */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 60%, rgba(0,0,0,0));
}

/* ── لوگو — وسط بالا ── */
.logo {
  width: 6rem;
  margin-top: 1rem;
}

/* ── متن — راست‌چین، سمت راست صفحه ── */
.header-text {
  z-index: 2;
  text-align: right;
  animation: fadeUp 0.5s 0.1s both;
}

.header-text h1 {
  font-size: clamp(2.4rem, 9vw, 7rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.3em;
  white-space: nowrap;
}

.header-text span {
  font-size: clamp(0.9rem, 2.8vw, 2rem);
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  display: block;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── عکس PNG (کروسان) — سمت چپ، absolute ── */
.header-img-png {
  z-index: 3;
  width: 20rem;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55));
  animation: floatIn 0.7s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateX(-20px) translateY(10px); }
  to   { opacity: 1; transform: translateX(0) translateY(0); }
}

/* ── لوگو باید بالای متن باشه — reposition روی موبایل ── */
@media (max-width: 600px) {
  #hero {
    height: 100vmin;
    min-height: 400px;
  }
  .text-png{
    flex-direction: column;
}
  .header-text {
        text-align: center;
  }

  .header-text h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
    white-space: normal;
  }

  .header-img-png {
    width: clamp(110px, 30vw, 200px);
  }
}
