/* ============================================================
   TechnoPlus — Main Stylesheet
   تم: مشکی و طلایی | Mobile-First | RTL | فارسی
   ============================================================ */

/* ─── CSS Custom Properties ─── */
:root {
  --gold: #C9A227;
  --gold-light: #E4C04D;
  --gold-dark: #A07C10;
  --black: #0A0A0A;
  --black-card: #141414;
  --black-surface: #1C1C1C;
  --black-border: #2A2A2A;
  --white: #F5F5F5;
  --white-dim: #AAAAAA;
  --green-wa: #25D366;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 20px rgba(201,162,39,0.25);
  --transition: 0.22s ease;
  --font: 'Vazirmatn', 'Tahoma', sans-serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--black);
  color: var(--white);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--black-border);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.page-nav {
  display: flex;
  gap: 0.4rem;
}
.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-dim);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-dark);
  text-decoration: none;
}
.nav-link.active {
  color: var(--gold);
  border-color: var(--gold-dark);
  background: rgba(201,162,39,0.08);
}

/* ─── Hero ─── */
.hero {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  background: linear-gradient(160deg, #111 0%, #0A0A0A 60%, #110d00 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,39,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-small {
  padding: 2rem 1.5rem 1.8rem;
}

.hero-title {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.hero-desc {
  font-size: clamp(0.88rem, 3vw, 1rem);
  color: var(--white-dim);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Sections ─── */
.section {
  padding: 1.5rem 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.6rem;
}

/* ─── Contact Buttons ─── */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 2rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  min-height: 52px;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0px); filter: brightness(0.95); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-icon { font-size: 1.2rem; line-height: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  box-shadow: 0 4px 16px rgba(201,162,39,0.3);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #1a9e4f, var(--green-wa));
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.25);
}

/* ─── Info Cards Grid ─── */
.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding-top: 0.5rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.info-card:hover {
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
}

.info-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.info-card-content { flex: 1; min-width: 0; }
.info-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-card-text {
  font-size: 0.93rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.link-map, .link-social {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ─── Bank Cards ─── */
.cards-section { padding-top: 2rem; }

.cards-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.bank-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #222 40%, #1a1200 100%);
  border: 1px solid var(--gold-dark);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.2rem;
  position: relative;
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
  overflow: hidden;
}
.bank-card::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.card-bank-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.card-chip {
  width: 36px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-chip::after {
  content: '';
  position: absolute;
  width: 60%; height: 1px;
  background: rgba(0,0,0,0.3);
  top: 50%;
}

.card-number {
  font-size: clamp(1rem, 4.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: left;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-owner {
  font-size: 0.85rem;
  color: var(--white-dim);
  font-weight: 500;
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 38px;
  white-space: nowrap;
}
.btn-copy:hover {
  background: rgba(201,162,39,0.22);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-copy:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn-copy.copied {
  background: rgba(37,211,102,0.15);
  border-color: #25D366;
  color: #25D366;
}

/* ─── Notice Box ─── */
.notice-section { padding-top: 0.3rem; }
.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: rgba(255,200,50,0.05);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.notice-box p {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ─── QR Section ─── */
.qr-section { text-align: center; padding-top: 0.5rem; }
.qr-hint {
  font-size: 0.82rem;
  color: var(--white-dim);
  margin-bottom: 1rem;
}
.qr-wrapper {
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius);
  border: 2px solid var(--gold-dark);
  box-shadow: var(--shadow-gold);
}
.qr-wrapper canvas,
.qr-img-wrapper img {
  display: block;
  width: 160px !important;
  height: 160px !important;
}
.qr-url {
  font-size: 0.7rem;
  color: #555;
  margin-top: 0.5rem;
  direction: ltr;
  font-family: monospace;
  overflow-wrap: break-word;
  max-width: 160px;
  text-align: center;
}

/* ─── Toast Notification ─── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a2e1a;
  border: 1px solid #25D366;
  color: #25D366;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 200;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--black-border);
  font-size: 0.78rem;
  color: var(--white-dim);
  margin-top: 2rem;
}

/* ─── 404 Error Page ─── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}
.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.error-msg { color: var(--white-dim); }

/* ─── Responsive — Tablet & Up ─── */
@media (min-width: 600px) {
  .contact-section { flex-direction: row; }
  .btn { flex: 1; }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .info-grid .info-card:first-child {
    grid-column: 1 / -1;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (min-width: 900px) {
  .section { padding: 2rem 1.5rem; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid .info-card:first-child { grid-column: auto; }
}
