/* Bozorgmehr website: lapis, gold leaf and old paper, like the game. */

@font-face { font-family: "Vazirmatn"; src: url("../../fonts/Vazirmatn-Regular.cdc140628f11.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../../fonts/Vazirmatn-Medium.dd2193b32cbe.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../../fonts/Vazirmatn-Bold.7958481fe611.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../../fonts/Vazirmatn-ExtraBold.a0f99309cd35.woff2") format("woff2"); font-weight: 800; font-display: swap; }
/* Noto Nastaliq Urdu (SIL OFL), cut down to the Persian letters */
@font-face { font-family: "Nastaliq"; src: url("../fonts/Nastaliq-Bold.4e51b978aa95.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --lapis: #1E3A8A;
  --lapis-deep: #13285E;
  --lapis-night: #0B1A40;
  --gold: #E0B13A;
  --gold-deep: #C9962B;
  --gold-ink: #8A6414;
  --gold-light: #F2C14E;
  --paper: #F1E2BC;
  --paper-light: #FBF3DF;
  --ink: #2B1D14;
  --ink-soft: #6B4A2B;
  --turq: #1A8C8C;
  --turq-deep: #0E5A5A;
  --vermilion: #B23A2B;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(19, 40, 94, .16);
  --shadow-deep: 0 18px 40px rgba(5, 12, 35, .45);
  --container: 1160px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper) url("../img/art/paper.36681e622233.webp") repeat;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lapis); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--turq-deep); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.nastaliq { font-family: "Nastaliq", "Vazirmatn", serif; font-weight: 700; }

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 26, 64, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 177, 58, .45);
  color: var(--paper-light);
}
.site-header .bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-light); text-decoration: none; margin-inline-end: auto; }
.brand:hover { color: var(--gold-light); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: "Nastaliq", "Vazirmatn", serif; font-size: 1.5rem; line-height: 1; padding-bottom: 4px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--paper); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); background: rgba(224, 177, 58, .1); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(224, 177, 58, .5); background: transparent; color: var(--gold-light);
  font-size: 1.15rem; cursor: pointer;
}
.site-header.open .nav { display: block; position: absolute; top: 100%; inset-inline: 0; background: var(--lapis-night); border-bottom: 1px solid rgba(224, 177, 58, .45); padding: 8px var(--gutter) 16px; }
.site-header.open .nav ul { flex-direction: column; }
.site-header.open .nav a { padding: 12px; font-size: 1.05rem; }

@media (min-width: 960px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); color: var(--ink); border-color: #F7D57F; box-shadow: 0 6px 18px rgba(201, 150, 43, .35); }
.btn-gold:hover { color: var(--ink); box-shadow: 0 8px 24px rgba(201, 150, 43, .5); }
.btn-lapis { background: linear-gradient(180deg, var(--lapis), var(--lapis-deep)); color: var(--paper-light); border-color: var(--gold); box-shadow: 0 6px 18px rgba(19, 40, 94, .3); }
.btn-lapis:hover { color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--lapis); border-color: var(--lapis); }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: .92rem; }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden; color: var(--paper-light);
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 32%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 26%, #fffa 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 9%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 38%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 46%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 44%, #fff6 50%, transparent 51%),
    linear-gradient(180deg, #0B1A40 0%, #0E1F4E 35%, #172D6A 100%);
}
.hero .moon {
  position: absolute; top: 22px; inset-inline-start: 18px; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: -12px 6px 0 0 var(--gold-light); filter: drop-shadow(0 0 18px rgba(242, 193, 78, .55));
  transform: rotate(-20deg);
}
.hero .cloud { position: absolute; opacity: .9; pointer-events: none; }
.hero .cloud-1 { top: 14px; width: 140px; inset-inline-end: -30px; animation: drift 70s linear infinite alternate; }
.hero .cloud-2 { display: none; top: 230px; width: 130px; inset-inline-end: 45%; animation: drift 55s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(160px); } }

.hero-grid { position: relative; z-index: 2; display: grid; gap: 8px; padding-top: 40px; }
.hero-text { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-weight: 700; letter-spacing: 0; margin: 0; }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { margin: 0; }
.hero .brand-word {
  display: block; font-family: "Nastaliq", "Vazirmatn", serif; font-weight: 700;
  font-size: clamp(3.6rem, 16vw, 6.6rem); line-height: 1.9; color: var(--gold-light);
  text-shadow: 0 3px 0 var(--gold-ink), 0 10px 30px rgba(0, 0, 0, .35);
  margin: 0;
}
.hero .hero-title { display: block; font-size: clamp(1.25rem, 4.6vw, 1.85rem); font-weight: 800; line-height: 1.7; color: var(--paper-light); }
.hero-lead { color: var(--paper); opacity: .92; font-size: 1.05rem; max-width: 34em; margin: .6em auto 1.3em; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.badge-link { display: block; border-radius: 12px; transition: transform .15s ease, filter .15s ease; }
.badge-link img { height: 48px; width: auto; }
@media (min-width: 600px) { .badge-link img { height: 54px; } }
.badge-link:hover { transform: translateY(-2px); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.badge-text {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 12px;
  background: #000; color: #fff; border: 1px solid #9a9a9a; text-decoration: none; font-weight: 700;
}
.badge-text i { font-size: 1.5rem; }
.badge-text small { display: block; font-size: .72rem; font-weight: 400; line-height: 1.2; opacity: .8; }
.badge-text span { line-height: 1.3; }
.badge-text:hover { color: #fff; }
.badge-soon { opacity: .55; cursor: default; }
.hero-stats { list-style: none; padding: 0; margin: 22px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.hero-stats li { background: rgba(11, 26, 64, .55); border: 1px solid rgba(224, 177, 58, .35); border-radius: 14px; padding: 8px 10px; font-size: .88rem; color: var(--paper); line-height: 1.5; }
.hero-stats strong { display: block; color: var(--gold-light); font-size: 1.15rem; font-weight: 800; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 330px; margin-top: 8px; }
.hero-art .toranj { position: absolute; width: 300px; top: 4px; left: 50%; margin-left: -150px; opacity: .9; animation: turn 120s linear infinite; filter: drop-shadow(0 0 30px rgba(224, 177, 58, .35)); }
@keyframes turn { to { transform: rotate(360deg); } }
.hero-art .sage { position: relative; z-index: 2; width: 150px; margin-bottom: -10px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.speech {
  position: absolute; z-index: 3; top: 10px; inset-inline-start: 0; max-width: 190px;
  background: var(--paper-light); color: var(--ink); border: 2px solid var(--gold); border-radius: 16px;
  padding: 10px 12px; font-size: .82rem; line-height: 1.7; box-shadow: var(--shadow-deep); text-align: start;
}
.speech b { display: block; font-family: "Nastaliq", "Vazirmatn", serif; color: var(--lapis); font-size: 1.1rem; line-height: 1.9; }
.speech::after { content: ""; position: absolute; bottom: -10px; inset-inline-end: 34px; width: 18px; height: 18px; background: var(--paper-light); border: 2px solid var(--gold); border-top: 0; border-inline-start: 0; transform: rotate(45deg); }
.horizon { position: relative; z-index: 1; width: 100%; height: 170px; object-fit: cover; object-position: center 70%; margin-top: -90px; }
.hero::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 14px; background: url("../img/art/divider.24f0eaa442f9.webp") center / auto 100% repeat-x, var(--lapis-deep); border-top: 2px solid var(--gold); }

@media (min-width: 600px) {
  .hero .moon { top: 70px; inset-inline-start: 7%; width: 54px; height: 54px; }
  .hero .cloud-1 { top: 110px; width: 220px; inset-inline-end: -40px; }
  .hero .cloud-2 { display: block; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
  .hero-art { min-height: 400px; }
  .hero-art .toranj { width: 360px; margin-left: -180px; }
  .hero-art .sage { width: 180px; }
  .speech { inset-inline-start: 6%; max-width: 230px; }
  .horizon { height: 240px; margin-top: -130px; object-position: center 66%; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 56px; min-height: 560px; }
  .hero-text { text-align: start; }
  .hero-lead { margin-inline: 0; }
  .badges { justify-content: flex-start; }
  .hero-stats { margin-inline: 0; }
  .hero-art { min-height: 560px; }
  .hero-art .toranj { width: 470px; margin-left: -235px; top: 20px; }
  .hero-art .sage { width: 230px; margin-bottom: -60px; }
  .speech { top: 40px; inset-inline-start: auto; inset-inline-end: -12px; max-width: 250px; font-size: .88rem; }
  .speech::after { inset-inline-end: auto; inset-inline-start: 40px; }
  .hero-grid { padding-bottom: 150px; }
  .hero-art { margin-bottom: -170px; }
  .horizon { height: 270px; margin-top: -150px; object-position: center 82%; }
  .hero .moon { inset-inline-start: 46%; top: 110px; }
}

/* ------------------------------------------------------------ sections */

.section { position: relative; padding: 64px 0; }
.section-paper-light { background: var(--paper-light); }
.section-lapis {
  color: var(--paper-light);
  background: url("../img/art/girih.c5d885a04985.svg") center / 96px 96px, linear-gradient(180deg, var(--lapis-deep), var(--lapis-night));
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head .kicker { display: block; color: var(--gold-ink); font-weight: 700; font-size: .95rem; }
.section-lapis .section-head .kicker { color: var(--gold-light); }
.section-head h2 { font-family: "Nastaliq", "Vazirmatn", serif; font-weight: 700; font-size: clamp(1.8rem, 5.6vw, 2.5rem); line-height: 2.25; color: var(--lapis); margin: 0; }
.section-lapis .section-head h2 { color: var(--gold-light); }
.section-head p { color: var(--ink-soft); margin: .4em auto 0; }
.section-lapis .section-head p { color: var(--paper); }
.section-head.start { text-align: start; margin: 0 0 18px; }
.section-head.start .divider { margin-inline: 0; }
.divider { display: block; width: 260px; height: 16px; margin: 6px auto 0; background: url("../img/art/divider.24f0eaa442f9.webp") center / contain no-repeat; }

/* about + sketch-to-colour showcase */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-text { font-size: 1.05rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

.frame { position: relative; padding: 14px; background: var(--paper-light); border: 2px solid var(--gold); border-radius: 8px; box-shadow: var(--shadow); }
.frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201, 150, 43, .6); border-radius: 3px; pointer-events: none; }
.frame .corner { position: absolute; width: 72px; height: 72px; background: url("../img/art/corner.ef00de283de1.webp") center / contain no-repeat; pointer-events: none; z-index: 3; }
.frame .corner.tl { top: -2px; left: -2px; transform: scaleX(-1); }
.frame .corner.tr { top: -2px; right: -2px; }
.frame .corner.bl { bottom: -2px; left: -2px; transform: scale(-1, -1); }
.frame .corner.br { bottom: -2px; right: -2px; transform: scaleY(-1); }

.compare { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--paper); --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold); pointer-events: none; box-shadow: 0 0 10px rgba(0, 0, 0, .35); }
.compare .handle::after {
  content: "\f07e"; font-family: "Font Awesome 7 Free"; font-weight: 900;
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lapis); color: var(--gold-light); border: 2px solid var(--gold); font-size: 1rem;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; direction: ltr; }
.compare .tag { position: absolute; z-index: 2; bottom: 10px; padding: 2px 12px; border-radius: 999px; background: rgba(11, 26, 64, .8); color: var(--paper-light); font-size: .82rem; pointer-events: none; }
.compare .tag.l { left: 10px; }
.compare .tag.r { right: 10px; }
.showcase-caption { text-align: center; margin: 12px 0 0; color: var(--ink-soft); font-size: .92rem; }

/* features */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  position: relative; background: #fffaf0; border: 1px solid rgba(201, 150, 43, .55); border-radius: var(--radius);
  padding: 22px 20px 18px; box-shadow: 0 4px 14px rgba(43, 29, 20, .06); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  background: radial-gradient(circle at 35% 30%, var(--lapis), var(--lapis-deep)); color: var(--gold-light);
  font-size: 1.35rem; border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(224, 177, 58, .18);
}
.feature h3 { font-size: 1.1rem; color: var(--lapis); margin-bottom: .3em; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; line-height: 1.85; }

@media (max-width: 599px) {
  .feature { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 16px; }
  .feature .icon { grid-row: span 2; width: 52px; height: 52px; margin: 2px 0 0; font-size: 1.2rem; }
}

/* how to play */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; text-align: center; background: rgba(11, 26, 64, .55); border: 1px solid rgba(224, 177, 58, .45); border-radius: var(--radius); padding: 18px 18px 20px; }
.step .arch {
  width: 132px; height: 158px; margin: 0 auto 12px; overflow: hidden;
  border-radius: 66px 66px 14px 14px; border: 3px solid var(--gold);
  background: linear-gradient(180deg, var(--turq), var(--turq-deep));
}
.step .arch img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step .num {
  position: absolute; top: 12px; inset-inline-start: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--ink); font-weight: 800;
}
@media (max-width: 639px) {
  .step { display: grid; grid-template-columns: 92px 1fr; column-gap: 14px; align-items: center; text-align: start; padding: 14px; }
  .step .arch { grid-row: span 2; width: 92px; height: 112px; margin: 0; border-radius: 46px 46px 10px 10px; }
  .step .num { top: 8px; inset-inline-start: 8px; width: 30px; height: 30px; font-size: .9rem; }
  .step h3 { align-self: end; margin: 0; }
  .step p { align-self: start; }
}
.step h3 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: .3em; }
.step p { color: var(--paper); font-size: .95rem; margin: 0; }

/* monuments */
.monuments { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .monuments { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .monuments { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.monument { position: relative; background: #fffaf0; border: 1px solid rgba(201, 150, 43, .55); border-radius: 16px; padding: 8px 8px 10px; box-shadow: 0 4px 14px rgba(43, 29, 20, .06); }
.monument .pic { position: relative; overflow: hidden; border-radius: 80px 80px 10px 10px / 46px 46px 10px 10px; aspect-ratio: 4 / 3; background: var(--paper); border: 2px solid var(--gold); }
.monument .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.monument:hover .pic img { transform: scale(1.05); }
.monument .no { position: absolute; top: 4px; inset-inline-start: 4px; z-index: 2; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; display: grid; place-items: center; background: var(--lapis); color: var(--gold-light); font-size: .82rem; font-weight: 800; border: 2px solid var(--gold); }
.monument h3 { font-size: .98rem; margin: 8px 4px 0; color: var(--lapis); line-height: 1.6; }
.monument p { margin: 0 4px; font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }
.more-monuments { margin-top: 14px; }
.more-monuments > summary { list-style: none; display: flex; justify-content: center; margin: 22px 0 0; }
.more-monuments > summary::-webkit-details-marker { display: none; }
.more-monuments[open] > summary { display: none; }

/* screenshots */
.shots-wrap { position: relative; }
.shots {
  list-style: none; margin: 0; padding: 10px 4px 22px; display: grid; grid-auto-flow: column; grid-auto-columns: 210px;
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
  overscroll-behavior-x: contain;
}
@media (min-width: 700px) { .shots { grid-auto-columns: 236px; } }
.shot { scroll-snap-align: center; text-align: center; }
.phone {
  position: relative; padding: 10px; border-radius: 34px;
  background: linear-gradient(145deg, #2a2f3f, #0d0f16); box-shadow: 0 0 0 2px rgba(224, 177, 58, .65), var(--shadow-deep);
}
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 3px; background: #05060a; z-index: 2; }
.phone img { border-radius: 25px; width: 100%; height: auto; background: var(--lapis-deep); }
.shot figcaption { margin-top: 12px; color: var(--paper); font-size: .9rem; line-height: 1.7; }
.shots-nav { display: none; justify-content: center; gap: 12px; margin-top: 4px; }
.js .shots-nav { display: flex; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); background: var(--lapis); color: var(--gold-light); cursor: pointer; font-size: 1rem; }
.round-btn:hover { background: var(--lapis-deep); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fffaf0; border: 1px solid rgba(201, 150, 43, .6); border-radius: 14px; box-shadow: 0 3px 10px rgba(43, 29, 20, .05); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--lapis); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font-family: "Font Awesome 7 Free"; font-weight: 900; margin-inline-start: auto; color: var(--gold-deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary .q { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lapis); color: var(--gold-light); font-size: .85rem; }
.faq .answer { padding: 0 18px 16px 18px; color: var(--ink-soft); }
.faq .answer ul { margin: 0 0 1em; padding-inline-start: 1.3em; }
.center { text-align: center; }
.mt { margin-top: 26px; }

/* download band */
.download { text-align: center; overflow: hidden; }
.download .toranj-bg { position: absolute; width: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; opacity: .14; pointer-events: none; }
.download .inner { position: relative; display: grid; gap: 10px; justify-items: center; }
.download .face { width: 120px; height: 150px; border-radius: 60px 60px 14px 14px; overflow: hidden; border: 3px solid var(--gold); background: linear-gradient(180deg, var(--turq), var(--turq-deep)); }
.download .face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.download h2 { font-family: "Nastaliq", "Vazirmatn", serif; color: var(--gold-light); font-size: clamp(1.8rem, 5.6vw, 2.5rem); line-height: 2.3; margin: 0 0 .3em; }
.download p { color: var(--paper); margin: 0 0 8px; }
.verse { font-family: "Nastaliq", "Vazirmatn", serif; color: var(--gold-light); font-size: 1.25rem; line-height: 2.6; margin: 18px 0 0; }
.verse small { display: block; margin-top: 6px; line-height: 1.6; font-family: "Vazirmatn", sans-serif; font-size: .8rem; color: var(--paper); opacity: .8; }

/* ------------------------------------------------------------ inner pages */

.page-hero { color: var(--paper-light); text-align: center; padding: 42px 0 54px; background: url("../img/art/girih.c5d885a04985.svg") center / 96px 96px, linear-gradient(180deg, var(--lapis-night), var(--lapis-deep)); border-bottom: 3px solid var(--gold); }
.page-hero h1 { font-family: "Nastaliq", "Vazirmatn", serif; color: var(--gold-light); font-size: clamp(2rem, 7vw, 2.9rem); line-height: 2.3; margin: 0; }
.page-hero p { margin: 0; color: var(--paper); }
.page-body { padding: 0 0 64px; }
.page-card { position: relative; max-width: 860px; margin: -28px auto 0; padding: 28px 22px; }
@media (min-width: 700px) { .page-card { padding: 40px 48px; } }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.2rem; color: var(--lapis); margin: 1.6em 0 .5em; padding-inline-start: 14px; border-inline-start: 4px solid var(--gold); line-height: 1.6; }
.prose ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold-deep); }
.updated { color: var(--ink-soft); font-size: .9rem; display: flex; align-items: center; gap: 8px; margin-bottom: 1.2em; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* contact */
.contact-grid { display: grid; gap: 22px; max-width: 1040px; margin: -28px auto 0; position: relative; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.form-card { padding: 24px 20px; }
@media (min-width: 700px) { .form-card { padding: 32px 36px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--lapis); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fffdf6; border: 1.5px solid rgba(138, 100, 20, .45);
  border-radius: 12px; padding: 10px 14px; min-height: 48px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(30, 58, 138, .2); }
.field .help { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.field .error, .errorlist { color: var(--vermilion); font-size: .88rem; margin: 6px 0 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--vermilion); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; }
.alert i { margin-top: 6px; }
.alert-ok { background: #e3f3ef; border: 1px solid var(--turq); color: var(--turq-deep); }
.alert-error { background: #fbe6e2; border: 1px solid var(--vermilion); color: #7c2219; }
.info-card { padding: 22px 20px; }
.info-card h2 { font-size: 1.15rem; color: var(--lapis); }
.info-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lapis); color: var(--gold-light); border: 1.5px solid var(--gold); font-size: .95rem; }
.info-list span { display: block; line-height: 1.7; }
.info-list small { display: block; color: var(--ink-soft); font-size: .8rem; }
.info-card .sage-mini { width: 120px; margin: 4px auto 0; }

/* ------------------------------------------------------------ footer */

.site-footer { color: var(--paper); background: linear-gradient(180deg, var(--lapis-night), #060f29); border-top: 3px solid var(--gold); padding: 48px 0 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: var(--gold-light); margin-bottom: .8em; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: rgba(241, 226, 188, .85); line-height: 1.9; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.footer-contact i { color: var(--gold); margin-top: 6px; width: 16px; text-align: center; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(224, 177, 58, .55); color: var(--gold-light); }
.social a:hover { background: rgba(224, 177, 58, .14); text-decoration: none; }
.trust { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust .enamad { background: #fff; border-radius: 12px; padding: 6px; min-width: 90px; min-height: 90px; display: grid; place-items: center; }
.trust .enamad img { max-width: 110px; height: auto; }
.footer-badges { display: grid; gap: 8px; margin-top: 12px; }
.footer-badges img { height: 44px; width: auto; }
.footer-bottom { margin-top: 36px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(224, 177, 58, .25); color: rgba(241, 226, 188, .75); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

/* ------------------------------------------------------------ error pages */

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.error-page .code { font-size: 4.5rem; font-weight: 800; color: var(--gold-deep); line-height: 1.2; }
.error-page h1 { font-family: "Nastaliq", "Vazirmatn", serif; color: var(--lapis); font-size: 2.1rem; line-height: 2.4; margin-bottom: .2em; }
.error-page .face { width: 150px; height: 188px; margin: 0 auto 10px; border-radius: 75px 75px 16px 16px; overflow: hidden; border: 3px solid var(--gold); background: linear-gradient(180deg, var(--turq), var(--turq-deep)); }
.error-page .face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

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