/* The landing site of bordersoffire.ir: the game's look (dark ground, amber and turquoise),
   Vazirmatn served from this site, no request to any other origin. */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/vazirmatn-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0a121d;
  --bg-2: #101b2a;
  --panel: rgba(16, 27, 42, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f1ece2;
  --muted: #a3acb9;
  --faint: #6f7a89;
  --amber: #ff9f2e;
  --amber-2: #ff6a2b;
  --turquoise: #2fd4c8;
  --gold: #f5c84c;
  --radius: 16px;
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 120, 40, 0.2), transparent 55%),
    radial-gradient(ellipse at 100% 60%, rgba(47, 212, 200, 0.08), transparent 45%), var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* The game's faint girih lattice. */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 14l4.2 5.1 6.4-1.7.4 6.6 6.1 2.4-3.5 5.6 3.5 5.6-6.1 2.4-.4 6.6-6.4-1.7L32 50l-4.2-5.1-6.4 1.7-.4-6.6-6.1-2.4 3.5-5.6-3.5-5.6 6.1-2.4.4-6.6 6.4 1.7ZM32 14V0M32 50v14M18.4 32H0M45.6 32H64' fill='none' stroke='%23ffb35c' stroke-width='1.1'/%3E%3C/svg%3E");
}

a {
  color: var(--turquoise);
}

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

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

/* ---- Header ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 18, 29, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  margin-inline-end: auto;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  color: #1a0d04;
  background: linear-gradient(90deg, #ffc25e, var(--amber), var(--amber-2));
  box-shadow: 0 8px 28px rgba(255, 120, 40, 0.3);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---- Hero ---- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background: url('img/home.svg') center bottom / cover no-repeat;
}

.hero img.emblem {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 30px rgba(255, 120, 40, 0.35));
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.3;
  font-weight: 900;
  background: linear-gradient(180deg, #ffd27a, var(--amber) 55%, var(--amber-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .latin {
  color: var(--turquoise);
  letter-spacing: 0.35em;
  font-size: 13px;
  margin: 4px 0 20px;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 18px;
  color: #d9d3c7;
}

.hero .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
}

/* ---- Sections ---- */

section {
  padding: 56px 0;
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 8px;
  font-weight: 800;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 680px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card .icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery figcaption {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.steps li::before {
  content: counter(step, persian);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a0d04;
  background: var(--amber);
}

/* ---- Prices ---- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

tr:last-child td {
  border-bottom: none;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gem {
  color: var(--turquoise);
  font-weight: 700;
}

.fine {
  font-size: 13px;
  color: var(--faint);
  margin-top: 12px;
}

/* ---- FAQ ---- */

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---- Text pages (about, contact, terms, privacy) ---- */

.page {
  padding: 48px 0 64px;
}

.page h1 {
  font-size: clamp(28px, 5vw, 38px);
  margin: 0 0 8px;
}

.page .updated {
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 28px;
}

.page h2 {
  font-size: 21px;
  margin: 32px 0 6px;
}

.page p,
.page li {
  color: #d9d3c7;
}

.prose {
  max-width: 780px;
}

dl.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 0;
}

dl.contact dt {
  color: var(--muted);
}

dl.contact dd {
  margin: 0;
  font-weight: 600;
}

/* Business details the owner fills in (eNamad needs them to match the registration). */
.fill {
  background: rgba(255, 159, 46, 0.14);
  border: 1px dashed rgba(255, 159, 46, 0.6);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--gold);
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-top: 24px;
  background: rgba(5, 9, 15, 0.5);
  font-size: 14px;
  color: var(--muted);
}

footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 24px;
  align-items: start;
}

footer h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* The eNamad and Kavenegar badges go here once issued (their code, as they give it). */
.trust {
  display: flex;
  gap: 12px;
  min-width: 120px;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 8px;
  font-size: 12px;
  text-align: center;
}

.copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  th,
  td {
    padding: 10px;
  }

  footer .cols {
    grid-template-columns: 1fr 1fr;
  }

  footer .cols > :first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
