/* ستایش — چاپ و تبلیغات
   Design concept: a print house at night — foil-stamped gold on dark
   stock, ticket-like cards with a perforated notch, one deliberate red
   accent lifted from the brand mark's paint-splash. Single dark world
   by design (the letterpress/foil concept doesn't translate to a light
   ground), so no light-theme variant is defined. */

:root {
  --gold: #c9a227;
  --gold-light: #e8c766;
  --gold-deep: #7c5e10;
  --ink-red: #b8383f;
  --bg: #15120d;
  --bg-raised: #1c1712;
  --card: #1e1811;
  --card-border: #3a2f1e;
  --text: #f3ede0;
  --hint: #a89877;
  --radius: 14px;
  --gap: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(201,162,39,0.05), transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(184,56,63,0.04), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(201,162,39,0.07), transparent);
}

.brand { text-decoration: none; display: flex; flex-direction: column; }

.brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--hint);
  letter-spacing: 1px;
}

.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--hint);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav a:hover { color: var(--gold-light); }

/* ---------- Layout ---------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 90px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-right: 14px;
  border-right: 3px solid var(--gold);
}

.breadcrumb {
  font-size: 13px;
  color: var(--hint);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb .back { color: var(--gold-light); text-decoration: none; font-weight: 600; }

/* ---------- Messages ---------- */

.messages { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.message {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-right: 3px solid var(--hint);
}
.message.success { border-right-color: #6fae72; color: #a8d4aa; }
.message.error { border-right-color: var(--ink-red); color: #e39ba0; }
.message.info { border-right-color: var(--gold); color: var(--gold-light); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 55%, var(--gold-light));
  color: #1a1408;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px -8px rgba(201,162,39,0.55);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(201,162,39,0.65); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
  box-shadow: none;
}
.btn-secondary:hover { border-color: var(--gold); box-shadow: none; }

/* ---------- Cards (ticket motif) ---------- */

.grid, .grid-desktop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.grid-desktop { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover, .card:active { transform: translateY(-2px); border-color: var(--gold); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--gap);
}

.product-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-deep);
  box-shadow: 0 16px 30px -14px rgba(0,0,0,0.6);
}
/* ticket perforation notch, at the image/title seam */
.product-card::before, .product-card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  top: 75%;
  transform: translateY(-50%);
  z-index: 2;
}
.product-card::before { left: -7px; }
.product-card::after { right: -7px; }

.product-card-img {
  aspect-ratio: 4 / 3;
  background: #0d0a07;
  overflow: hidden;
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-weight: 900;
  font-size: 22px;
  opacity: 0.45;
}

.product-card-title {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  border-top: 1px dashed var(--card-border);
}

/* ---------- Sample gallery + spec form ---------- */

.sample-grid, .sample-grid-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sample-grid-desktop { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.sample {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--card-border);
  aspect-ratio: 1;
  cursor: pointer;
}
.sample img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sample.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.sample .badge {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.65);
  color: var(--gold-light);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--hint); margin-bottom: 6px; font-weight: 600; }
.field select, .field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 480px;
}

.summary-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 14px;
  white-space: pre-line;
}

.price-box {
  background: linear-gradient(135deg, rgba(201,162,39,0.14), rgba(201,162,39,0.02));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  font-size: 14px;
  white-space: pre-line;
  color: var(--gold-light);
}

.empty-state {
  text-align: center;
  color: var(--hint);
  padding: 50px 20px;
  font-size: 14px;
  line-height: 1.8;
}

table.simple { width: 100%; border-collapse: collapse; }
table.simple td, table.simple th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--card-border);
  text-align: right;
  font-size: 14px;
}
table.simple th { color: var(--gold-light); font-size: 12px; letter-spacing: 0.5px; }

/* ---------- Tabs ---------- */

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--hint);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  transition: border-color 0.15s, color 0.15s;
}
.tab:hover { border-color: var(--gold-deep); color: var(--text); }
.tab.active { background: var(--gold); color: #1a1408; border-color: var(--gold); }

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

.hero {
  text-align: center;
  padding: 90px 20px 70px;
  background:
    radial-gradient(circle at 22% 20%, rgba(201,162,39,0.16), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(184,56,63,0.10), transparent 50%),
    linear-gradient(180deg, var(--bg-raised), var(--bg));
  border-bottom: 1px solid var(--card-border);
  margin: -40px -24px 48px;
}

.hero-eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink-red);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  text-wrap: balance;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title span { color: var(--ink-red); -webkit-text-fill-color: var(--ink-red); }

.hero-sub {
  max-width: 540px;
  margin: 0 auto 32px;
  color: var(--hint);
  font-size: 16.5px;
  line-height: 1.85;
  text-wrap: balance;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}
.trust-item {
  background: var(--bg-raised);
  padding: 22px 16px;
  text-align: center;
}
.trust-icon { display: block; font-size: 26px; margin-bottom: 10px; }
.trust-item strong { display: block; font-size: 13.5px; color: var(--gold-light); margin-bottom: 6px; }
.trust-item p { margin: 0; font-size: 12px; color: var(--hint); line-height: 1.7; }

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.section-title-row .see-all { font-size: 13px; color: var(--gold-light); text-decoration: none; font-weight: 600; }
.section-title-row .see-all:hover { text-decoration: underline; }

/* ---------- About band ---------- */

.about-band {
  margin-top: 70px;
  padding: 56px 20px 20px;
  border-top: 1px dashed var(--card-border);
  text-align: center;
}
.about-band h2 {
  color: var(--gold-light);
  margin-bottom: 36px;
  font-size: 22px;
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.about-item strong { display: block; color: var(--gold-light); margin-bottom: 8px; font-size: 15.5px; }
.about-item p { color: var(--hint); font-size: 13.5px; line-height: 1.85; margin: 0; }

/* ---------- News strip ---------- */

.news-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 10px; }
.news-strip .product-card { min-width: 220px; flex: 0 0 auto; }

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

.footer {
  border-top: 1px solid var(--card-border);
  padding: 0 24px 28px;
  background: var(--bg-raised);
}

.footer-cta {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 20px 40px;
}
.footer-cta h3 { color: var(--gold-light); font-size: 19px; margin: 0 0 10px; }
.footer-cta p { color: var(--hint); font-size: 13.5px; line-height: 1.8; margin: 0 0 20px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto 28px;
  text-align: right;
}
.footer-grid > div { display: flex; flex-direction: column; gap: 9px; }
.footer-grid strong { color: var(--gold-light); font-size: 13.5px; margin-bottom: 4px; font-weight: 800; }
.footer-grid a { color: var(--hint); font-size: 13px; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-light); }

.footer > p {
  text-align: center;
  color: var(--hint);
  font-size: 12.5px;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px dashed var(--card-border);
}

/* ---------- Success / spinner ---------- */

.success { text-align: center; padding: 70px 20px; }
.success .icon { font-size: 56px; margin-bottom: 18px; }
.success h2 { color: var(--gold-light); margin-bottom: 10px; }
.success p { color: var(--hint); font-size: 14px; line-height: 1.85; }

.spinner { display: flex; justify-content: center; padding: 40px; }
.spinner::after {
  content: "";
  width: 32px; height: 32px;
  border: 3px solid var(--card-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible, .card:focus-visible, .product-card:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
