/* =========================================================
   فروشگاه آریا — arya-store.ir
   Styles: RTL, mobile-first, no frameworks
   ========================================================= */

/* ---------- Fonts (self-hosted for reliability in IR) ---------- */
@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;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #15120f;
  --ink-2: #3a332c;
  --muted: #6d6358;
  --line: #e4ddd1;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --gold: #b48a2d;
  --gold-soft: #d9bd73;
  --gold-wash: #f7eed8;
  --rose: #a9636d;
  --green: #1f7a52;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(21, 18, 15, .05), 0 2px 8px rgba(21, 18, 15, .04);
  --shadow-md: 0 4px 10px rgba(21, 18, 15, .06), 0 16px 36px rgba(21, 18, 15, .08);
  --wrap: 1160px;
  --head-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, 'Iranian Sans', sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
p  { margin: 0 0 1.15em; }
strong, b { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Persian numerals render better with these */
.num { font-variant-numeric: lining-nums; letter-spacing: .02em; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--surface-2); }
.section--ink { background: var(--ink); color: #cfc6b8; }
.section--ink h2, .section--ink h3 { color: #fff; }
.skip {
  position: absolute; right: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 0 10px;
}
.skip:focus { right: 0; }

.sec-head { max-width: 62ch; margin-bottom: 2.4rem; }
.sec-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; color: var(--gold);
  letter-spacing: .06em; margin-bottom: .7rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--gold-soft);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 248, 243, .9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__name { font-size: 1.08rem; line-height: 1.2; }
.brand__sub { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: .3rem; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: 10px;
  font-size: .94rem; font-weight: 500; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--gold-wash); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }

.head-cta { display: flex; align-items: center; gap: .5rem; }
.burger {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--surface); cursor: pointer; color: var(--ink);
}
.burger svg { width: 20px; height: 20px; }

/* mobile drawer */
.m-nav {
  display: none; border-top: 1px solid var(--line); background: var(--surface);
  padding: .6rem 0 1.1rem;
}
.m-nav.open { display: block; }
.m-nav a {
  display: block; padding: .72rem .2rem; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.m-nav a:last-child { border-bottom: 0; }
.m-nav .btn { margin-top: .9rem; width: 100%; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.45rem; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  line-height: 1.6;
}
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(180, 138, 45, .28); }
.btn--gold:hover { background: #9d7724; }
.btn--wa { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(31, 122, 82, .26); }
.btn--wa:hover { background: #18613f; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold-soft); background: var(--gold-wash); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--sm { padding: .55rem 1rem; font-size: .86rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(900px 420px at 85% -10%, var(--gold-wash), transparent 70%),
              radial-gradient(700px 400px at 5% 110%, #f6eef0, transparent 70%);
}
.hero__pattern {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 46%;
  opacity: .5; z-index: 0; pointer-events: none;
}
.hero__in {
  position: relative; z-index: 1;
  display: grid; gap: 2.5rem; align-items: center;
  padding: clamp(2.6rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero h1 { margin-bottom: .5rem; }
.hero h1 .accent { color: var(--gold); }
.hero__lead { font-size: clamp(1rem, .95rem + .35vw, 1.15rem); color: var(--ink-2); max-width: 46ch; }
.hero__art { display: none; }
.hero .btn-row { margin-top: 1.6rem; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero__meta div { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--muted); }
.hero__meta svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.trust__item { background: var(--surface); padding: 1.5rem 1.2rem; text-align: center; }
.trust__item svg { width: 30px; height: 30px; margin: 0 auto .7rem; color: var(--gold); }
.trust__item b { display: block; color: var(--ink); font-size: .98rem; }
.trust__item span { font-size: .82rem; color: var(--muted); line-height: 1.8; }

/* ---------- Cards / categories ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.1rem; text-align: center;
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
a.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.cat__ico {
  width: 74px; height: 74px; margin: 0 auto .9rem;
  background: var(--gold-wash); border-radius: 50%;
  display: grid; place-items: center;
}
.cat__ico svg { width: 42px; height: 42px; color: var(--gold); }
.cat h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.cat p { font-size: .83rem; color: var(--muted); margin: 0; line-height: 1.85; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { display: flex; align-items: center; gap: .6rem; }
.card h3 svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 auto; }
.card p:last-child { margin-bottom: 0; }

/* numbered steps */
.steps { counter-reset: s; display: grid; gap: 1.1rem; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 4.2rem 1.4rem 1.3rem;
}
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 1.3rem; inset-inline-end: 1.3rem;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--gold-wash); color: var(--gold);
  border-radius: 50%; font-weight: 700; font-size: 1rem;
}
.step h3 { margin-bottom: .3rem; font-size: 1.02rem; }
.step p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Feature split ---------- */
.split { display: grid; gap: 2.2rem; align-items: center; }
.split__art {
  background: var(--gold-wash); border-radius: var(--radius-lg);
  padding: 1.6rem; border: 1px solid var(--line);
}
.ticks { display: grid; gap: .7rem; margin: 1.2rem 0 1.6rem; }
.ticks li { display: flex; align-items: flex-start; gap: .65rem; font-size: .94rem; }
.ticks svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; margin-top: .42rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: #d6cdbf;
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.cta-band::after {
  content: ''; position: absolute; inset-inline-end: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,138,45,.3), transparent 65%);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 54ch; margin-inline: auto; color: #b8ae9e; }
.cta-band .btn-row { justify-content: center; position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .2rem 1.2rem;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  font-weight: 700; color: var(--ink); font-size: .98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--gold); font-size: 1.5rem; font-weight: 400;
  line-height: 1; transition: transform .22s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 1.1rem; color: var(--muted); font-size: .92rem; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem;
}
.contact-item__ico {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px;
  background: var(--gold-wash); display: grid; place-items: center;
}
.contact-item__ico svg { width: 23px; height: 23px; color: var(--gold); }
.contact-item b { display: block; color: var(--ink); margin-bottom: .15rem; font-size: .97rem; }
.contact-item a, .contact-item span { font-size: .9rem; color: var(--muted); line-height: 1.9; }
.contact-item a:hover { color: var(--gold); }

.map-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); min-height: 300px;
}
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Blog ---------- */
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .25s;
}
a.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__thumb { background: var(--gold-wash); padding: 1.3rem; }
.post-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.post-card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.post-card p { font-size: .87rem; color: var(--muted); margin: 0; }
.post-card time { font-size: .78rem; color: var(--gold); font-weight: 500; }

.prose { max-width: 70ch; }
article.prose { margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-inline-start: 1.3em; }
.prose ul li { list-style: disc; margin-bottom: .45em; }
.prose ol li { list-style: decimal; margin-bottom: .45em; }
.prose blockquote {
  margin: 1.6rem 0; padding: 1rem 1.3rem;
  border-inline-start: 3px solid var(--gold); background: var(--gold-wash);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.breadcrumb { font-size: .83rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb li::after { content: '‹'; margin-inline-start: .4rem; color: var(--line); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a:hover { color: var(--gold); }

/* page header */
.page-head {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.2rem) 0;
}
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #a79d8e; padding: 3.2rem 0 0; font-size: .89rem; }
.site-foot a:hover { color: var(--gold-soft); }
.foot-grid { display: grid; gap: 2rem; padding-bottom: 2.4rem; }
.site-foot h4 { color: #fff; font-size: .98rem; margin-bottom: .9rem; }
.site-foot li { margin-bottom: .55rem; }
.foot-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; color: #fff; font-weight: 700; }
.foot-brand svg { width: 36px; height: 36px; }
.foot-social { display: flex; gap: .6rem; margin-top: 1rem; }
.foot-social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 11px;
  transition: background .2s, border-color .2s;
}
.foot-social a:hover { background: rgba(255,255,255,.1); border-color: var(--gold-soft); }
.foot-social svg { width: 19px; height: 19px; }
.foot-bar {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  font-size: .82rem; color: #8b8274;
}

/* ---------- Floating actions ---------- */
.fab {
  position: fixed; inset-block-end: 1rem; inset-inline-start: 1rem; z-index: 80;
  display: flex; flex-direction: column; gap: .6rem;
}
.fab a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-md); transition: transform .18s;
}
.fab a:hover { transform: scale(1.07); }
.fab svg { width: 25px; height: 25px; }
.fab__wa { background: var(--green); }
.fab__ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.05rem; color: var(--ink-2); }
.badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  background: var(--gold-wash); color: var(--gold); font-size: .78rem; font-weight: 700;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: block; }
  .burger { display: none; }
  .m-nav { display: none !important; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .hero__in { grid-template-columns: 1.05fr .95fr; }
  .hero__art { display: block; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .fab { inset-block-end: 1.5rem; inset-inline-start: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, a.cat:hover, a.post-card:hover, .fab a:hover { transform: none; }
}

@media print {
  .site-head, .fab, .cta-band, .site-foot { display: none; }
  body { background: #fff; }
}
