/**
 * Sparkle ACC — Editorial pages v4.6.1
 * Retro Liquid Glass: warm translucency, hard ink borders and useful content.
 */

:root {
	--sa-page-ink: #111820;
	--sa-page-paper: #fffdf7;
	--sa-page-cream: #fff6dc;
	--sa-page-orange: #ffad27;
	--sa-page-coral: #f05b43;
	--sa-page-teal: #49b9b1;
	--sa-page-green: #45c987;
	--sa-page-muted: #626b72;
}

body:is(.page-special-offers, .page-purchase-guide, .page-contact-us, .blog, .single-post, .error404) {
	color: var(--sa-page-ink);
	background:
		linear-gradient(rgb(17 24 32 / 3%) 1px, transparent 1px),
		linear-gradient(90deg, rgb(17 24 32 / 3%) 1px, transparent 1px),
		var(--sa-page-cream);
	background-size: 38px 38px, 38px 38px, auto;
}

.sa-page,
.sa-article {
	position: relative;
	isolation: isolate;
	width: 100%;
	overflow: hidden;
	direction: rtl;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.sa-page *,
.sa-page *::before,
.sa-page *::after,
.sa-article *,
.sa-article *::before,
.sa-article *::after {
	box-sizing: border-box;
}

.sa-page a,
.sa-article a {
	color: inherit;
}

.sa-wrap {
	width: min(1180px, calc(100% - 36px));
	margin-inline: auto;
}

.sa-page__hero {
	position: relative;
	padding: clamp(56px, 8vw, 104px) 0 clamp(42px, 6vw, 74px);
}

.sa-page__hero::before,
.sa-page__hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border: 3px solid var(--sa-page-ink);
	border-radius: 50%;
	opacity: .2;
}

.sa-page__hero::before {
	inset: 10% auto auto 5%;
	width: clamp(120px, 18vw, 240px);
	aspect-ratio: 1;
	background: var(--sa-page-coral);
}

.sa-page__hero::after {
	inset: auto 8% 4% auto;
	width: clamp(90px, 13vw, 170px);
	aspect-ratio: 1;
	background: var(--sa-page-teal);
}

.sa-page__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr);
	align-items: center;
	gap: clamp(28px, 6vw, 76px);
}

.sa-kicker,
.sa-card__index,
.sa-article__meta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: "Lilita One", "Vazirmatn", sans-serif;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .7px;
}

.sa-kicker::before {
	content: "✦";
	color: var(--sa-page-coral);
	font-size: 18px;
}

.sa-page__hero h1,
.sa-blog-head h1,
.sa-article h1,
.sa-error h1 {
	max-width: 780px;
	margin: 18px 0 16px;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	font-size: clamp(42px, 6.3vw, 82px);
	font-weight: 950;
	line-height: 1.13;
	letter-spacing: -2.6px;
}

.sa-page__hero h1 mark,
.sa-blog-head h1 mark {
	position: relative;
	color: inherit;
	background: none;
	white-space: nowrap;
}

.sa-page__hero h1 mark::after,
.sa-blog-head h1 mark::after {
	content: "";
	position: absolute;
	inset: auto -2% 5px -2%;
	z-index: -1;
	height: 17px;
	background: var(--sa-page-orange);
	transform: rotate(-1.2deg);
}

.sa-page__lead,
.sa-blog-head p,
.sa-article__lead {
	max-width: 670px;
	margin: 0;
	color: var(--sa-page-muted);
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 590;
	line-height: 2;
}

.sa-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.sa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 12px 20px;
	color: var(--sa-page-paper) !important;
	background: var(--sa-page-ink);
	border: 2px solid var(--sa-page-ink);
	border-radius: 13px;
	box-shadow: 4px 5px 0 var(--sa-page-orange);
	font-size: 14px;
	font-weight: 900;
	text-decoration: none !important;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.sa-button:hover,
.sa-button:focus-visible {
	color: var(--sa-page-ink) !important;
	background: var(--sa-page-teal);
	box-shadow: 2px 3px 0 var(--sa-page-ink);
	transform: translate(2px, 2px);
}

.sa-button--paper {
	color: var(--sa-page-ink) !important;
	background: rgb(255 253 247 / 76%);
	box-shadow: 4px 5px 0 var(--sa-page-teal);
	backdrop-filter: blur(14px) saturate(120%);
}

.sa-page__ticket,
.sa-glass-card {
	position: relative;
	padding: clamp(24px, 3.4vw, 38px);
	background:
		linear-gradient(135deg, rgb(255 255 255 / 78%), rgb(255 247 223 / 56%));
	border: 3px solid var(--sa-page-ink);
	border-radius: 24px;
	box-shadow: 10px 11px 0 var(--sa-page-ink);
	backdrop-filter: blur(18px) saturate(130%);
}

.sa-page__ticket::before {
	content: "";
	position: absolute;
	inset: 12px;
	pointer-events: none;
	border: 1px solid rgb(255 255 255 / 78%);
	border-radius: 15px;
}

.sa-ticket__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 2px dashed rgb(17 24 32 / 28%);
	font-family: "Lilita One", sans-serif;
	font-size: 12px;
	letter-spacing: 1px;
}

.sa-ticket__icon {
	display: grid;
	place-items: center;
	width: 94px;
	aspect-ratio: 1;
	margin: 28px auto 22px;
	background: var(--sa-page-orange);
	border: 3px solid var(--sa-page-ink);
	border-radius: 28px;
	box-shadow: 6px 7px 0 var(--sa-page-coral);
	font-size: 44px;
	transform: rotate(-4deg);
}

.sa-page__ticket h2 {
	margin: 0 0 10px;
	font-size: clamp(23px, 3vw, 34px);
	font-weight: 950;
	line-height: 1.4;
	text-align: center;
}

.sa-page__ticket p {
	margin: 0;
	color: var(--sa-page-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.9;
	text-align: center;
}

.sa-section {
	padding: clamp(44px, 7vw, 86px) 0;
}

.sa-section--ink {
	color: var(--sa-page-paper);
	background: var(--sa-page-ink);
	border-block: 3px solid var(--sa-page-ink);
}

.sa-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.sa-section__head h2 {
	max-width: 700px;
	margin: 9px 0 0;
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 950;
	line-height: 1.28;
	letter-spacing: -1.3px;
}

.sa-section__head p {
	max-width: 430px;
	margin: 0;
	color: var(--sa-page-muted);
	font-size: 15px;
	font-weight: 560;
	line-height: 1.95;
}

.sa-section--ink .sa-section__head p {
	color: rgb(255 253 247 / 70%);
}

.sa-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.sa-card {
	position: relative;
	min-width: 0;
	padding: 26px;
	color: var(--sa-page-ink);
	background: var(--sa-page-paper);
	border: 3px solid var(--sa-page-ink);
	border-radius: 18px;
	box-shadow: 7px 8px 0 var(--sa-page-orange);
}

.sa-card:nth-child(2n) {
	box-shadow: 7px 8px 0 var(--sa-page-teal);
}

.sa-card:nth-child(3n) {
	box-shadow: 7px 8px 0 var(--sa-page-coral);
}

.sa-card__index {
	justify-content: space-between;
	width: 100%;
	color: var(--sa-page-muted);
}

.sa-card__icon {
	display: grid;
	place-items: center;
	width: 54px;
	aspect-ratio: 1;
	margin: 22px 0 18px;
	background: var(--sa-page-orange);
	border: 2px solid var(--sa-page-ink);
	border-radius: 14px;
	font-size: 24px;
}

.sa-card h3 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 950;
	line-height: 1.45;
}

.sa-card p {
	margin: 0;
	color: var(--sa-page-muted);
	font-size: 14px;
	font-weight: 560;
	line-height: 1.9;
}

.sa-card a:not(.sa-button) {
	display: inline-flex;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}

.sa-step-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	counter-reset: sparkle-step;
}

.sa-step {
	position: relative;
	padding: 24px 22px;
	color: var(--sa-page-ink);
	background: var(--sa-page-cream);
	border: 3px solid var(--sa-page-paper);
	border-radius: 18px;
	counter-increment: sparkle-step;
}

.sa-step::before {
	content: "0" counter(sparkle-step);
	display: block;
	margin-bottom: 28px;
	color: var(--sa-page-orange);
	font-family: "Lilita One", sans-serif;
	font-size: 29px;
}

.sa-step:not(:last-child)::after {
	content: "←";
	position: absolute;
	inset: 50% auto auto -20px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	aspect-ratio: 1;
	color: var(--sa-page-ink);
	background: var(--sa-page-orange);
	border: 2px solid var(--sa-page-ink);
	border-radius: 50%;
	font-weight: 950;
	transform: translateY(-50%);
}

.sa-step h3 {
	margin: 0 0 9px;
	font-size: 19px;
	font-weight: 950;
}

.sa-step p {
	margin: 0;
	color: var(--sa-page-muted);
	font-size: 13px;
	font-weight: 580;
	line-height: 1.85;
}

.sa-note {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	padding: clamp(24px, 4vw, 38px);
	background: rgb(255 253 247 / 72%);
	border: 3px solid var(--sa-page-ink);
	border-radius: 22px;
	box-shadow: 8px 9px 0 var(--sa-page-teal);
	backdrop-filter: blur(16px) saturate(125%);
}

.sa-note__mark {
	display: grid;
	place-items: center;
	width: 66px;
	aspect-ratio: 1;
	background: var(--sa-page-orange);
	border: 3px solid var(--sa-page-ink);
	border-radius: 18px;
	font-size: 28px;
	font-weight: 950;
}

.sa-note h2 {
	margin: 0 0 5px;
	font-size: clamp(23px, 3vw, 34px);
	font-weight: 950;
}

.sa-note p {
	margin: 0;
	color: var(--sa-page-muted);
	font-size: 14px;
	font-weight: 570;
	line-height: 1.9;
}

/* Blog ------------------------------------------------------------ */

.sa-blog-head {
	padding: clamp(58px, 8vw, 104px) 0 42px;
}

.sa-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	padding-bottom: clamp(72px, 9vw, 118px);
}

.sa-post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--sa-page-paper);
	border: 3px solid var(--sa-page-ink);
	border-radius: 20px;
	box-shadow: 7px 8px 0 var(--sa-page-teal);
}

.sa-post-card:nth-child(3n + 2) {
	box-shadow-color: var(--sa-page-orange);
}

.sa-post-card:nth-child(3n) {
	box-shadow-color: var(--sa-page-coral);
}

.sa-post-card__visual {
	display: grid;
	place-items: center;
	min-height: 190px;
	overflow: hidden;
	background:
		radial-gradient(circle at 72% 35%, rgb(255 255 255 / 45%) 0 42px, transparent 44px),
		var(--sa-page-orange);
	border-bottom: 3px solid var(--sa-page-ink);
	font-family: "Lilita One", sans-serif;
	font-size: 58px;
}

.sa-post-card__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sa-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.sa-post-card__body small {
	color: var(--sa-page-coral);
	font-size: 12px;
	font-weight: 900;
}

.sa-post-card h2 {
	margin: 10px 0 9px;
	font-size: 22px;
	font-weight: 950;
	line-height: 1.55;
}

.sa-post-card p {
	margin: 0 0 20px;
	color: var(--sa-page-muted);
	font-size: 14px;
	line-height: 1.9;
}

.sa-post-card__body > a {
	margin-top: auto;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
}

.sa-empty {
	grid-column: 1 / -1;
	padding: clamp(38px, 7vw, 76px);
	background: rgb(255 253 247 / 78%);
	border: 3px solid var(--sa-page-ink);
	border-radius: 22px;
	box-shadow: 8px 9px 0 var(--sa-page-orange);
	text-align: center;
	backdrop-filter: blur(14px);
}

.sa-empty span {
	display: block;
	font-size: 38px;
}

.sa-empty h2 {
	margin: 10px 0 8px;
	font-size: 30px;
	font-weight: 950;
}

.sa-empty p {
	margin: 0;
	color: var(--sa-page-muted);
	line-height: 1.9;
}

.sa-pagination {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.sa-pagination .nav-links {
	display: flex;
	gap: 8px;
}

.sa-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	background: var(--sa-page-paper);
	border: 2px solid var(--sa-page-ink);
	border-radius: 10px;
	font-weight: 900;
	text-decoration: none;
}

.sa-pagination .current {
	background: var(--sa-page-orange);
	box-shadow: 3px 3px 0 var(--sa-page-ink);
}

/* Article and 404 ------------------------------------------------- */

.sa-article__head {
	padding: clamp(58px, 8vw, 104px) 0 40px;
}

.sa-article__meta {
	color: var(--sa-page-coral);
}

.sa-article__surface {
	width: min(850px, calc(100% - 36px));
	margin: 0 auto clamp(72px, 9vw, 118px);
	padding: clamp(28px, 5vw, 58px);
	background: rgb(255 253 247 / 86%);
	border: 3px solid var(--sa-page-ink);
	border-radius: 24px;
	box-shadow: 10px 11px 0 var(--sa-page-teal);
	backdrop-filter: blur(18px);
}

.sa-article__surface :where(p, li) {
	color: #384048;
	font-size: 17px;
	font-weight: 540;
	line-height: 2.1;
}

.sa-article__surface :where(h2, h3) {
	margin: 1.8em 0 .65em;
	font-weight: 950;
	line-height: 1.5;
}

.sa-error {
	display: grid;
	place-items: center;
	min-height: 70vh;
	padding: 70px 18px 100px;
	text-align: center;
}

.sa-error__code {
	display: block;
	margin-bottom: -20px;
	color: var(--sa-page-orange);
	font-family: "Lilita One", sans-serif;
	font-size: clamp(110px, 23vw, 270px);
	line-height: .8;
	-webkit-text-stroke: 3px var(--sa-page-ink);
	text-shadow: 8px 9px 0 var(--sa-page-coral);
}

.sa-error h1 {
	margin-inline: auto;
	font-size: clamp(34px, 5vw, 58px);
}

.sa-error p {
	max-width: 600px;
	margin: 0 auto 28px;
	color: var(--sa-page-muted);
	font-size: 17px;
	line-height: 1.9;
}

@media (prefers-reduced-motion: no-preference) {
	.sa-page__hero-grid > *,
	.sa-blog-head > *,
	.sa-article__head > * {
		animation: sa-page-rise .62s cubic-bezier(.2, .8, .2, 1) both;
	}

	.sa-page__hero-grid > :nth-child(2) {
		animation-delay: .12s;
	}

	@keyframes sa-page-rise {
		from { opacity: 0; transform: translateY(20px); }
		to { opacity: 1; transform: translateY(0); }
	}
}

@media (max-width: 980px) {
	.sa-page__hero-grid {
		grid-template-columns: 1fr;
	}

	.sa-page__ticket {
		width: min(100%, 600px);
	}

	.sa-card-grid,
	.sa-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sa-step-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sa-step:nth-child(2)::after {
		display: none;
	}
}

@media (max-width: 680px) {
	.sa-wrap {
		width: min(100% - 24px, 1180px);
	}

	.sa-page__hero {
		padding-top: 42px;
	}

	.sa-page__hero h1,
	.sa-blog-head h1,
	.sa-article h1 {
		font-size: clamp(38px, 12vw, 54px);
		letter-spacing: -1.6px;
	}

	.sa-page__hero h1 mark::after,
	.sa-blog-head h1 mark::after {
		height: 11px;
	}

	.sa-section__head {
		align-items: start;
		flex-direction: column;
	}

	.sa-card-grid,
	.sa-blog-grid,
	.sa-step-grid {
		grid-template-columns: 1fr;
	}

	.sa-step:not(:last-child)::after {
		display: none;
	}

	.sa-note {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.sa-note__mark {
		margin-inline: auto;
	}

	.sa-note .sa-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sa-page *,
	.sa-article * {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
