/* پایه‌ی مشترک سه طرح. رنگ‌ها، قلم‌ها و گردی گوشه‌ها را هر طرح در a|b|c.css با متغیرها می‌دهد.
   قاعده‌های فارسی: letter-spacing روی متن فارسی ممنوع است (حروف را از هم جدا می‌کند)؛ اندازه‌ها با rem تا تنظیم اندازه‌ی متن گوشی کار کند. */
@font-face { font-family: "Estedad"; src: url("/fonts/estedad.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mikhak"; src: url("/fonts/mikhak.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sahel"; src: url("/fonts/sahel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --font: "Estedad"; --font-d: var(--font);
  --bg: #fff; --bg2: #f4f6f7; --card: #fff; --ink: #16202a; --mute: #52606b; --line: #e3e8eb; --line-strong: #c3cdd4;
  --brand: #F07F1B; --accent-ink: #B4500A; --btn-bg: #B9520B; --btn-ink: #fff; --sel-bg: #14495C; --sel-ink: #fff; --focus: #14495C;
  --r-btn: 999px; --r-chip: 999px; --r-day: 18px; --r-card: 22px; --r-in: 14px;
  --ft-bg: #16202a; --ft-ink: #e7ecef; --tag-bg: #ffefd6; --tag-ink: #7a4300; --seat-free: #c3cdd4; --err: #B42318;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --wrap: 72rem; --gut: clamp(1rem, 4vw, 2rem); --sec: clamp(3.5rem, 2rem + 5vw, 7rem); --hdr-h: 4rem;
  color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; --err: #FF8A80; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 1.5rem); }
body { margin: 0; font-family: var(--font), system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.9; color: var(--ink); background: var(--bg); letter-spacing: 0; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-d), var(--font), sans-serif; line-height: 1.35; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.35rem + 3.2vw, 3.9rem); font-weight: 850; word-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
a, button, label, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec__head { max-width: 42rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.sec__head p { color: var(--mute); margin-top: .5rem; font-size: 1.1rem; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--mute); margin-top: 1rem; max-width: 36rem; }
.tag { font-style: normal; font-size: .75rem; font-weight: 700; line-height: 1.6; padding: .05rem .6rem; border-radius: 999px; background: var(--tag-bg); color: var(--tag-ink); vertical-align: middle; white-space: nowrap; }

/* سربرگ */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: .75rem; min-height: var(--hdr-h); }
.brand { display: flex; align-items: center; gap: .6rem; min-height: 48px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand__mark { display: block; width: 2.5rem; height: 2.5rem; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__tx { display: grid; line-height: 1.25; min-width: 0; }
.brand__tx b { font-family: var(--font-d), var(--font); font-size: 1.4rem; font-weight: 850; }
.brand__tx small { font-size: .74rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: .15rem; }
.nav a { text-decoration: none; padding: .4rem .8rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; color: var(--mute); font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--bg2); } }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 480px) { .hdr__cta { padding-inline: .85rem; } }
@media (max-width: 380px) { .brand__tx small { display: none; } }
.tt { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tt span { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); transition: background-color .3s, box-shadow .3s; }
[data-theme="dark"] .tt span { background: transparent; box-shadow: inset -6px -4px 0 0 #F5D7A1; }

/* دکمه‌ها */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .55rem 1.5rem; border-radius: var(--r-btn); border: 1.5px solid transparent; background: var(--btn-bg); color: var(--btn-ink); font-weight: 750; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background-color .2s, border-color .2s, color .2s; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--ink)); }
  .btn--ghost:hover { background: transparent; border-color: var(--ink); }
}
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--sm { min-height: 44px; padding: .4rem 1.1rem; font-size: .95rem; }
.btn--wide { width: 100%; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.badges { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--mute); font-size: .92rem; }
.badges li::before { content: ""; display: inline-block; vertical-align: middle; width: .5rem; height: .5rem; margin-inline-end: .5rem; border-radius: 50%; background: var(--brand); }

/* آدمک: همان شکلِ آدم‌های حلقه‌ی نشان، به رنگ هر خدمت */
.fig { --s: 2.6rem; position: relative; display: block; width: var(--s); height: var(--s); flex: none; }
.fig::before { content: ""; position: absolute; top: 0; inset-inline-start: 29%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.fig::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 8%; width: 84%; height: 46%; border-radius: 48% 48% 14% 14% / 80% 80% 20% 20%; background: var(--c); }
.fig--lg { --s: 4.5rem; }

/* خدمات */
.svc__grid, .ws__grid, .team { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.svc__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.svc__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem 1.5rem 1.6rem; display: grid; gap: .5rem; align-content: start; }
.svc__q { display: none; }
.svc__d { color: var(--mute); }

/* کارگاه‌ها */
.ws__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.ws__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.seats { width: 5.5rem; height: 5.5rem; }
.seat { fill: none; stroke: var(--seat-free); stroke-width: 2.5; }
.seat.on { fill: var(--brand); stroke: var(--brand); }
.ws__q { display: none; }
.ws__who { color: var(--mute); font-size: .95rem; margin-top: .3rem; line-height: 1.75; }
.ws__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .8rem; font-size: .95rem; font-weight: 650; }
.ws__left { margin: .5rem 0 1rem; color: var(--mute); font-size: .95rem; }
.ws__left b { color: var(--ink); }
.record { margin-top: 2rem; padding: 1.1rem 1.4rem; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.record b { font-family: var(--font-d), var(--font); font-size: 1.7rem; font-weight: 850; color: var(--accent-ink); margin-inline-end: .25rem; }

/* درباره */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }
.founder__ph { margin: 0; }
.founder__ph img { width: 100%; height: auto; border-radius: var(--r-card); object-fit: cover; }
.founder__tx h3 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); }
.founder__role { color: var(--accent-ink); font-weight: 750; margin-bottom: .6rem; }
.tl { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .7rem .9rem; }
.tl li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; font-size: .98rem; line-height: 1.75; }
.tl b { color: var(--accent-ink); font-weight: 800; }
.team__h { margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 1rem; display: flex; align-items: center; gap: .6rem; }
.team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.team li { display: grid; justify-items: center; text-align: center; gap: .4rem; padding: 1.5rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); }
.team li > span:last-child { color: var(--mute); font-size: .95rem; }

/* نوبت */
.book__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .book__grid { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: .9rem; }
.steps li::before { content: counter(s, persian); grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line-strong); font-weight: 800; color: var(--accent-ink); }
.steps b { font-size: 1.1rem; }
.steps span { color: var(--mute); }
.form, .done { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.form { display: grid; gap: 1.15rem; }
.form[hidden], .done[hidden] { display: none; }
.fld { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, .fld legend { font-weight: 700; font-size: .98rem; padding: 0; }
.fld legend { margin-bottom: .45rem; }
input, select, textarea { width: 100%; min-height: 48px; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--r-in); padding: .5rem .9rem; }
textarea { min-height: 0; resize: vertical; line-height: 1.8; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; border-color: var(--focus); }
input[type="tel"] { text-align: right; }
[aria-invalid="true"] { border-color: var(--err); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
@media (max-width: 640px) { .days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seg label, .days label, .times label { position: relative; display: block; }
label > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 48px; padding: .4rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-chip); background: var(--card); cursor: pointer; font-weight: 650; text-align: center; line-height: 1.4; user-select: none; transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease); }
.chip--day { flex-direction: column; gap: .1rem; padding: .5rem .2rem; border-radius: var(--r-day); }
.chip--day b { font-size: .88rem; font-weight: 750; }
.chip--day small { font-size: .8rem; color: var(--mute); }
.times .chip { padding-inline: .3rem; }
input:checked + .chip { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
input:checked + .chip small { color: inherit; opacity: .85; }
input:focus-visible + .chip { outline: 3px solid var(--focus); outline-offset: 2px; }
input:disabled + .chip { opacity: .5; cursor: not-allowed; background: var(--bg2); }
@media (hover: hover) and (pointer: fine) { input:not(:checked):not(:disabled) + .chip:hover { border-color: var(--ink); } }
.chip:active { transform: scale(.97); }
.form__err { color: var(--err); font-weight: 650; }
.form__err:empty { display: none; }
.form__demo { color: var(--mute); font-size: .85rem; text-align: center; }
.done { display: grid; gap: .6rem; }
.done b { font-family: var(--font-d), var(--font); font-size: 1.35rem; }

/* پرسش‌ها و تماس */
.faq__list { display: grid; gap: .6rem; max-width: 48rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-in); background: var(--card); }
.faq summary { cursor: pointer; list-style: none; padding: .8rem 1.2rem; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent-ink); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--mute); }
.contact__list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin: 0; }
.contact__list div { background: var(--bg2); border-radius: var(--r-card); padding: 1.25rem 1.4rem; }
.contact__list dt { color: var(--mute); font-size: .9rem; }
.contact__list dd { margin: .3rem 0 0; font-size: 1.12rem; font-weight: 700; }
.contact__list a { text-decoration: none; border-bottom: 2px solid var(--brand); display: inline-block; }

/* پایین صفحه */
.ft { background: var(--ft-bg); color: var(--ft-ink); padding: 3rem 0 6.5rem; font-size: .95rem; }
.ft__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-size: 1.05rem; }
.ft p { opacity: .85; }
.ft .tag { background: rgb(255 255 255 / .14); color: inherit; }

/* دکمه‌ی پیش‌نمایشِ طرح‌ها (فقط تا پدر انتخاب کند) */
.switch { position: fixed; z-index: 40; bottom: calc(.75rem + env(safe-area-inset-bottom)); left: .75rem; display: flex; align-items: center; gap: .1rem; padding: .25rem; padding-inline-start: 1rem; border-radius: 999px; background: #16202a; color: #fff; border: 1px solid rgb(255 255 255 / .18); box-shadow: 0 10px 30px rgb(10 14 18 / .28); font-size: .9rem; }
.switch span { opacity: .75; margin-inline-end: .35rem; }
.switch a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-weight: 800; }
.switch a[aria-current] { background: #F07F1B; color: #16202a; }

/* صفحه‌ی انتخاب طرح */
.choose { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 4rem; }
.choose__head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.choose__head .brand__mark { width: 6.5rem; height: 6.5rem; margin: 0 auto 1.25rem; }
.choose__head p { color: var(--mute); margin-top: .75rem; }
.choose__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.choose__list a { display: grid; align-content: start; gap: .5rem; height: 100%; padding: 1.5rem; border: 1.5px solid var(--line); border-radius: 22px; background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .choose__list a:hover { border-color: var(--brand); transform: translateY(-2px); } }
.choose__k { color: var(--accent-ink); font-weight: 800; }
.choose__list b { font-family: var(--font-d), var(--font); font-size: 1.7rem; }
.choose__f { color: var(--mute); font-size: .9rem; }
.choose__sw { display: flex; gap: .35rem; margin-top: .25rem; }
.choose__sw i { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line-strong); }
