/* ==========================================================================
   پناه الکتریک — Shared Design System
   Persian RTL · dark tech-repair theme
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --ink:      #0f1420;
  --ink-2:    #0b0f18;
  --panel:    #161d2e;
  --panel-2:  #1c2540;
  --line:     #26304a;
  --cyan:     #2dd4ff;
  --cyan-dim: #1a9ec4;
  --amber:    #ffb020;
  --amber-dk: #e89400;
  --text:     #e6ebf5;
  --muted:    #8b96ab;
  --white:    #ffffff;

  --radius:   16px;
  --radius-sm: 10px;
  --maxw:     1160px;
  --gap:      clamp(1rem, 3vw, 2rem);

  --glow-cyan: 0 0 0 1px rgba(45,212,255,.25), 0 8px 30px -8px rgba(45,212,255,.35);
  --shadow:   0 20px 50px -20px rgba(0,0,0,.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--ink);
  color: var(--text);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* ---- Eyebrow / headings ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--cyan);
  padding: .35rem .8rem;
  border: 1px solid rgba(45,212,255,.3);
  border-radius: 100px;
  background: rgba(45,212,255,.06);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

h1, h2, h3 { line-height: 1.3; font-weight: 900; color: var(--white); }
.h-section { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-block: .8rem 0; }
.lead { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--amber); color: #241700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255,176,32,.6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); transform: translateY(-2px); }
.btn-wa { background: #1eb45a; color: #fff; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(30,180,90,.6); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,15,24,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 900; font-size: 1.15rem; color: var(--white); }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  display: grid; place-items: center; box-shadow: 0 0 18px -4px var(--cyan);
}
.brand .logo-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .12em; }

.nav-links { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.nav-links a {
  padding: .5rem .85rem; border-radius: 8px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.05); }
.nav-links a.soon { color: #55607a; cursor: not-allowed; position: relative; }
.nav-links a.soon::after {
  content: "به‌زودی"; font-size: .58rem; font-weight: 700;
  background: var(--panel-2); color: var(--cyan); padding: .1rem .4rem;
  border-radius: 6px; margin-inline-start: .35rem; vertical-align: middle;
}
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-cta .btn { padding: .6rem 1.1rem; font-size: .92rem; }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; transition: .25s; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a, .footer-grid li { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; transition: color .15s; }
.footer-grid a:hover { color: var(--cyan); }
.footer-about p { color: var(--muted); font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; color: var(--muted); }
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .burger { display: block; margin-inline-start: auto; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: 72px; background: var(--panel);
    border-bottom: 1px solid var(--line); padding: 1rem; gap: .25rem;
  }
  .nav.open .nav-cta { display: flex; flex-direction: column;
    position: absolute; inset-inline: 0; top: calc(72px + 220px); background: var(--panel);
    padding: 0 1rem 1rem; gap: .5rem; border-bottom: 1px solid var(--line); }
  .nav.open .nav-cta .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
