/*
Theme Name: Sitopia
Author: Sitopia
Description: Custom theme for sitopia.ir
Version: 0.3.0
Text Domain: sitopia
*/

@font-face { font-family: "Peyda"; src: url("assets/fonts/PeydaWeb-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Peyda"; src: url("assets/fonts/PeydaWeb-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--bg: #15171c;
	--surface: #1d2027;
	--surface-2: #252932;
	--line: #2e333d;
	--text: #f4f4f0;
	--muted: #a4a7ae;
	--lime: #c8f560;
	--radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Peyda", Tahoma, sans-serif; line-height: 1.9; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--bg); font-weight: 700; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--lime); white-space: nowrap; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lime); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(21, 23, 28, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }
.mnav { display: none; margin-inline-start: auto; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 22px; height: 2px; background: var(--text); }
.mnav-panel { position: absolute; inset-inline-end: 0; top: 52px; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 4px; }
.mnav-panel a:not(.btn) { padding: 10px 12px; border-radius: 10px; }
.mnav-panel a:not(.btn):hover { background: var(--surface-2); }
.mnav-panel .btn { margin-top: 8px; }

/* Hero */
.hero { padding: 88px 0 56px; }
.hero-page { padding: 64px 0 24px; }
.hero h1 { font-size: clamp(30px, 5.5vw, 54px); max-width: 820px; }
.hero h1 span { color: var(--lime); }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-block; color: var(--lime); font-size: 14px; font-weight: 700; margin-bottom: 8px; }

/* Sections & cards */
.section { padding: 48px 0; }
.section-head { margin-bottom: 28px; max-width: 680px; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 34px); }
.section-head p { color: var(--muted); }
.grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); margin: 0; }
.service { transition: border-color .15s; display: flex; flex-direction: column; }
.service:hover { border-color: var(--lime); }
.service .more { color: var(--lime); margin-top: 16px; font-size: 14px; font-weight: 700; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin-inline: auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 20px; }
.price { color: var(--muted); margin-bottom: 20px; }
.price strong { color: var(--text); font-size: 44px; margin-inline-end: 6px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.checks li { padding-inline-start: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); -webkit-mask: radial-gradient(circle, #000 35%, transparent 36%); mask: radial-gradient(circle, #000 35%, transparent 36%); }
.note { color: var(--muted); margin-top: 16px; font-size: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step, persian); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--bg); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); margin: 0; }

/* Posts */
.post-card { padding: 0; overflow: hidden; }
.post-thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card h3, .post-card p { padding-inline: 20px; }
.post-card h3 { margin-top: 16px; font-size: 18px; }
.post-card p { padding-bottom: 20px; }
.post-card h3 a:hover { color: var(--lime); }
.page-title { font-size: clamp(28px, 4.5vw, 42px); margin-top: 48px; }
.article-cover img { border-radius: var(--radius); margin: 24px 0 32px; width: 100%; }
.prose { color: #d9dad6; }
.prose h2 { font-size: 24px; margin-top: 36px; color: var(--text); }
.prose h3 { font-size: 20px; margin-top: 28px; color: var(--text); }
.prose p, .prose li { margin-bottom: 12px; }
.prose a { color: var(--lime); text-decoration: underline; }
.prose strong { color: var(--text); }
.article { padding: 40px 0 56px; }
.article .page-title { margin-top: 0; }
.card.prose p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA + footer */
.cta-band { background: var(--lime); color: var(--bg); margin-top: 48px; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; }
.cta-row h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 4px; }
.cta-row p { margin: 0; }
.cta-band .btn { background: var(--bg); color: var(--text); border-color: var(--bg); }
.site-footer { padding: 48px 0 24px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid img { height: 32px; width: auto; margin-bottom: 12px; }
.footer-grid h3 { color: var(--text); font-size: 16px; }
.footer-grid a { display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--lime); }
.copyright { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 14px; }
.nav-links { display: flex; gap: 8px; }

@media (max-width: 960px) {
	.nav, .header-cta { display: none; }
	.mnav { display: block; }
	.grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
	.grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.grid-3, .grid-4, .steps, .plans, .footer-grid { grid-template-columns: 1fr; }
	.hero { padding: 56px 0 32px; }
	.cta-row { flex-direction: column; align-items: flex-start; }
}

#pricing .section-head { margin-inline: auto; text-align: center; }
#pricing .note { text-align: center; }

.byline { color: var(--muted); font-size: 14px; margin: -4px 0 0; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--lime); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.section-head a, .card p a { color: var(--lime); }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
