/* 247brands.ir — the hub that introduces every 247 shop.
 * One family (Vazirmatn), the 247 Brands navy/cream/orange from the logo, and
 * each card wearing its own shop's accent (--c / --c-soft, set inline). */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  /* this build draws 0-9 as Persian digits; leave ASCII digits to the system
   * face so 247tefal.ir and "247 Brands" keep Latin digits. Persian text
   * uses ۰-۹ explicitly. */
  unicode-range: U+0000-002F, U+003A-10FFFF;
}

:root {
  --navy: #0d1b2a;
  --navy-2: #42505e;
  --cream: #f5efe6;
  --paper: #fffdf9;
  --orange: #d9482b;
  --line: #e4dccf;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 16px/1.85 "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-feature-settings: "ss01";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ── header ─────────────────────────────────────────────────────────────── */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.top__logo img { height: 44px; width: auto; }
.top__call { font-size: 14px; font-weight: 700; text-decoration: none; }
.top__call span { color: var(--orange); }
.top__call:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ── intro ──────────────────────────────────────────────────────────────── */
.intro { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.intro h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.intro p { margin: 18px 0 0; max-width: 40em; font-size: clamp(16px, 1.6vw, 19px); color: var(--navy-2); }

/* ── shop cards ─────────────────────────────────────────────────────────── */
.shops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.shop {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shop:hover { border-color: var(--c); box-shadow: 0 18px 40px -28px var(--c); }
.shop:focus-visible { outline-offset: 3px; border-radius: 18px; }

/* the sign: the brand name, as large as the card allows */
.shop__sign {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  border-top: 6px solid var(--c);
}
.shop__latin {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--c);
}
.shop__fa { font-size: 18px; font-weight: 700; color: var(--navy-2); }

.shop__photo { display: block; aspect-ratio: 4 / 3; background: var(--c-soft); overflow: hidden; }
.shop__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shop--product .shop__photo img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.shop:hover .shop__photo img { transform: scale(1.03); }

.shop__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 18px 22px 22px; }
.shop__desc { font-size: 15px; line-height: 1.8; color: var(--navy-2); }
.shop__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.shop__domain { font-size: 14px; font-weight: 600; color: var(--navy-2); }
.shop__cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.shop:hover .shop__cta { background: var(--c); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { background: var(--navy); color: #d6dbe0; }
.foot__row { display: flex; align-items: flex-start; gap: 20px; padding-block: 36px 40px; font-size: 14px; }
.foot__row img { flex: none; }
.foot p { margin: 0; max-width: 60em; }
.foot a { color: #fff; font-weight: 700; }
.foot__legal { margin-top: 10px !important; font-size: 12.5px; color: #9aa6b2; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .shops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shops { grid-template-columns: 1fr; }
  .top__row { min-height: 64px; }
  .top__logo img { height: 36px; }
  .top__call { font-size: 12.5px; }
  .shop__photo { aspect-ratio: 16 / 10; }
  .foot__row { flex-direction: column; }
}
@media (max-width: 380px) {
  .shop__go { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .shop, .shop__photo img, .shop__cta { transition: none; }
  .shop:hover .shop__photo img { transform: none; }
}
