:root {
  --ink: #14201c;
  --ink-soft: #2a3b34;
  --paper: #f2eee6;
  --sage: #3f6b57;
  --sage-deep: #1f3d31;
  --brass: #b8893d;
  --brass-hot: #d4a45a;
  --line: rgba(20, 32, 28, 0.12);
  --font-display: "Lalezar", system-ui, sans-serif;
  --font-body: "Vazirmatn", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 0% 0%, rgba(63, 107, 87, 0.14), transparent 55%),
    linear-gradient(180deg, #eef3ef 0%, var(--paper) 45%, #ebe6db 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(20, 32, 28, 0.6), rgba(20, 32, 28, 0.15));
  color: #f7f3ea;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-mark__fa {
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.brand-mark__en {
  font-size: 0.72rem;
  opacity: 0.78;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar__nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #f8f4eb;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-store.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 18, 14, 0.35) 0%, rgba(10, 18, 14, 0.25) 40%, rgba(10, 18, 14, 0.86) 100%),
    radial-gradient(700px 360px at 80% 20%, rgba(184, 137, 61, 0.25), transparent 60%);
}

.hero__content {
  width: min(880px, 100%);
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.2rem, 5vw, 3rem) clamp(2.6rem, 7vh, 4.2rem);
  animation: riseIn 0.95s ease both;
}

.hero__brand {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 8vw, 5.2rem);
  line-height: 1;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 2.7vw, 1.95rem);
  font-weight: 600;
  line-height: 1.4;
}

.hero__lede {
  margin: 0 0 1.45rem;
  max-width: 38ch;
  font-size: 1.02rem;
  opacity: 0.93;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brass-hot), var(--brass));
  color: #1a1408;
  box-shadow: 0 12px 28px rgba(184, 137, 61, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid rgba(247, 243, 234, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #f7f3ea;
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(3.2rem, 7vh, 5rem) 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.section.is-in {
  opacity: 1;
  transform: none;
}

.section__head {
  margin-bottom: 1.6rem;
}

.section__head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--sage-deep);
  line-height: 1.2;
}

.section__head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.product.is-in {
  opacity: 1;
  transform: none;
}

.product:nth-child(2).is-in { transition-delay: 0.05s; }
.product:nth-child(3).is-in { transition-delay: 0.1s; }
.product:nth-child(4).is-in { transition-delay: 0.15s; }
.product:nth-child(5).is-in { transition-delay: 0.2s; }
.product:nth-child(6).is-in { transition-delay: 0.25s; }
.product:nth-child(7).is-in { transition-delay: 0.3s; }
.product:nth-child(8).is-in { transition-delay: 0.35s; }
.product:nth-child(9).is-in { transition-delay: 0.4s; }

.product__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7ebe8;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product:hover img {
  transform: scale(1.05);
}

.product h3 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  color: var(--sage-deep);
}

.product p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.address {
  display: grid;
  gap: 0.4rem;
  font-style: normal;
  width: min(540px, 100%);
  padding: 1.35rem 1.2rem;
  border-top: 2px solid var(--sage);
  background: rgba(255, 255, 255, 0.55);
}

.address__city {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  color: var(--sage-deep);
  line-height: 1.2;
}

.address__line {
  font-size: 1.05rem;
  font-weight: 600;
}

.address__note {
  color: var(--ink-soft);
}

.footer {
  margin-top: 1rem;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage-deep);
  margin-bottom: 0.25rem;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

@keyframes heroDrift {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate3d(-1%, -0.6%, 0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .topbar__nav {
    display: none;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media { animation: none; }
  .section,
  .product,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
