/* Site-wide design system (Oct 2026 redesign): monochrome dark, Inter Tight + Inter.
   Loaded LAST on every page so these tokens and the shared nav/footer win over older page styles. */
:root {
  --black: #0B0B0C; --dark: #111113; --surface: #17171A; --dim: #26262A;
  --white: #EDEDEB; --muted: rgba(237,237,235,0.62); --faint: rgba(255,255,255,0.09);
  --accent: #EDEDEB;
  --F: 'Inter', -apple-system, sans-serif;
  --D: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --sn-pad: 48px; --sn-max: 1280px;
}
html[lang="fa"] { --F: 'Vazirmatn', -apple-system, sans-serif; --D: 'Vazirmatn', -apple-system, sans-serif; }
body { background: var(--black); font-family: var(--F); -webkit-font-smoothing: antialiased; }
body::after { display: none !important; } /* old grain overlay */
::selection { background: rgba(255,255,255,0.18); color: #fff; }

/* ── shared nav ── */
nav.sn { position: fixed; inset: 0 0 auto 0; z-index: 500; height: 72px; padding: 0; display: flex; align-items: center; justify-content: stretch; background: transparent; border-bottom: 1px solid transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background 400ms, border-color 400ms; }
nav.sn.solid { background: rgba(11,11,12,0.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-color: rgba(255,255,255,0.08); }
.sn-in { width: 100%; max-width: var(--sn-max); margin: 0 auto; padding: 0 var(--sn-pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sn-brand { display: flex; align-items: center; gap: 12px; font-family: var(--D); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--white); text-decoration: none; white-space: nowrap; }
.sn-brand img { width: 26px; height: auto; }
.sn-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.sn-links a { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(237,237,235,0.68); text-decoration: none; transition: color 200ms; white-space: nowrap; }
.sn-links a:hover, .sn-links a.on { color: var(--white); }
.sn-right { display: flex; align-items: center; gap: 22px; }
.sn-fa { font-family: 'Vazirmatn', 'Inter', sans-serif; font-size: 13px; color: rgba(237,237,235,0.68); text-decoration: none; }
.sn-fa:hover { color: var(--white); }
nav.sn .btn { height: 38px; padding: 0 18px; font-size: 12.5px; }

/* ── buttons (old .btn-pill / .cta-inline restyled to match) ── */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; transition: background 250ms, color 250ms, border-color 250ms; white-space: nowrap; }
.btn-solid, .btn-pill, .cta-inline { background: var(--white) !important; color: #0B0B0C !important; border-radius: 6px !important; font-family: 'Inter', sans-serif !important; font-weight: 500 !important; letter-spacing: 0.01em !important; border: none; }
.btn-solid:hover, .btn-pill:hover, .cta-inline:hover { background: #fff !important; opacity: 1 !important; }
.btn-line { border: 1px solid rgba(255,255,255,0.16); color: var(--white); background: transparent; }
.btn-line:hover { border-color: var(--white); }

/* ── shared footer ── */
footer.sf { display: block; border-top: 1px solid rgba(255,255,255,0.08); padding: 64px 0 36px; background: var(--black); margin: 0; }
.sf-in { max-width: var(--sn-max); margin: 0 auto; padding: 0 var(--sn-pad); }
.sf-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 64px; }
.sf-col h4 { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(237,237,235,0.54); margin: 0 0 18px; }
.sf-col a { display: block; font-family: 'Inter', sans-serif; font-size: 13.5px; color: rgba(237,237,235,0.68); padding: 4px 0; text-decoration: none; }
.sf-col a:hover { color: var(--white); }
.sf-brand p { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(237,237,235,0.54); margin-top: 14px; max-width: 280px; line-height: 1.6; }
.sf-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(237,237,235,0.54); }

/* ── floating WhatsApp, monochrome ── */
a.wa { width: 48px !important; height: 48px !important; border-radius: 50% !important; background: var(--surface) !important; border: 1px solid rgba(255,255,255,0.16) !important; box-shadow: none !important; display: grid !important; place-items: center !important; }
a.wa:hover { border-color: var(--white) !important; transform: none !important; }
a.wa svg { width: 20px !important; height: 20px !important; fill: var(--white) !important; }

/* mobile menu: native <details>, no JS */
.sn-menu { display: none; position: relative; }
.sn-menu summary { list-style: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--white); padding: 8px 0; }
.sn-menu summary::-webkit-details-marker { display: none; }
.sn-menu[open] summary { color: rgba(237,237,235,0.68); }
.sn-menu-list { position: fixed; top: 72px; left: 0; right: 0; background: rgba(11,11,12,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px var(--sn-pad) 24px; }
.sn-menu-list a { display: block; font-family: var(--D); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--white); text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sn-menu-list a:last-child { border-bottom: none; }

@media (max-width: 1080px) {
  :root { --sn-pad: 32px; }
  .sn-links { display: none; }
  .sn-menu { display: block; }
  .sf-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --sn-pad: 20px; }
  .sn-brand span, .sn-fa { display: none; }
  .sf-top { grid-template-columns: 1fr; gap: 32px; }
}
