/* ==========================================================================
   خانه فراگو — سیستم طراحی
   الهام از نشان پروانه: نیمه‌ی زیتونی (مغز / گفتار) و نیمه‌ی بنفش (بال / حرکت)
   ========================================================================== */

@font-face { font-family: Vazir; src: url(../fonts/Vazir-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Vazir; src: url(../fonts/Vazir.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazir; src: url(../fonts/Vazir-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazir; src: url(../fonts/Vazir-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazir; src: url(../fonts/Vazir-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
    --violet: #84139e;
    --violet-deep: #5a0f6c;
    --violet-soft: #efe2f4;
    --olive: #6f8f12;
    --olive-ink: #4b6406;
    --olive-soft: #eef3dc;
    --ink: #2a0f33;
    --ink-2: #4a3651;
    --muted: #6d5e72;
    --line: #e6dcea;
    --mist: #faf7fb;
    --white: #fff;

    --font: Vazir, Tahoma, system-ui, sans-serif;
    --step--1: .875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.5rem;
    --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
    --step-4: clamp(2.2rem, 1.4rem + 3.2vw, 3.75rem);

    --wrap: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius-s: 10px;
    --radius-m: 18px;
    --radius-l: 32px;
    --wing: 28px 160px 110px 28px;
    --wing-mirror: 160px 28px 28px 110px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.95;
    color: var(--ink-2);
    background: var(--white);
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--violet-deep); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.4; margin: 0 0 .6em; font-weight: 900; }
h1 { font-size: var(--step-4); line-height: 1.3; letter-spacing: -.5px; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -60px; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.num { font-feature-settings: "ss01"; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.25em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1.4; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); color: #fff; }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-ink); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--olive-soft); color: var(--ink); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #157a41; color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.link-more .icon { transition: transform .2s; }
.link-more:hover .icon { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 46px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-size: 1.2rem; font-weight: 900; }
.brand-name small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a { display: block; padding: .45rem .8rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--violet-soft); color: var(--violet-deep); }
.nav a.active { color: var(--violet); font-weight: 700; }
.header-cta { flex: none; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--ink); cursor: pointer; margin-inline-start: auto; }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 1140px) {
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; margin: 0;
        border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(42,15,51,.35);
        padding: 1rem var(--gutter) 1.5rem; display: none;
    }
    .nav.is-open { display: block; }
    .nav ul { flex-direction: column; align-items: stretch; }
    .nav a { padding: .8rem 1rem; font-size: 1.05rem; border-radius: 12px; }
    .nav .nav-cta { display: block; margin-top: .75rem; }
}
@media (min-width: 1141px) { .nav .nav-cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-mist { background: var(--mist); }
.section-sage { background: var(--olive-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 60ch; }

/* Heartbeat line — motif from the logo */
.pulse { display: block; width: 100%; height: 48px; color: var(--violet); }
.pulse path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero-intro > :first-child { grid-column: 1 / -1; margin-bottom: 0; }
.hero-intro h1 { margin: 0; }
.hero-side .hero-lead { margin: 0; }
@media (max-width: 900px) { .hero-intro { grid-template-columns: 1fr; } }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--olive-ink); margin-bottom: 1rem; font-size: 1.05rem; }
.hero-tag::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--olive); }
.hero h1 { margin-bottom: 1rem; }
.hero-lead { font-size: var(--step-1); line-height: 1.9; color: var(--muted); max-width: 40rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.wings { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.25rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.wing {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem); min-height: 290px;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: #fff; text-decoration: none;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.wing:hover { transform: translateY(-4px); color: #fff; }
.wing-speech { padding-inline-end: calc(clamp(84px, 11vw, 132px) / 2 + 1.5rem); }
.wing-ot { padding-inline-start: calc(clamp(84px, 11vw, 132px) / 2 + 1.5rem); }
.wing-speech { background: linear-gradient(160deg, #86a81c 0%, var(--olive) 45%, var(--olive-ink) 100%); border-radius: var(--wing); }
.wing-ot { background: linear-gradient(200deg, #a632c2 0%, var(--violet) 45%, var(--violet-deep) 100%); border-radius: var(--wing-mirror); }
.wing h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); margin-bottom: .35rem; }
.wing p { margin: 0 0 1.25rem; opacity: .92; max-width: 30ch; line-height: 1.85; }
.wing .wing-go { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; padding: .55rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.18); align-self: flex-start; transition: background .2s; }
.wing:hover .wing-go { background: rgba(255,255,255,.3); }
.wing-veins { position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none; }
.wing-veins path { fill: none; stroke: #fff; stroke-width: 1.5; }
.wing-ot .wing-veins { transform: scaleX(-1); }
.wings-emblem {
    position: absolute; inset-block-start: calc(50% - 34px); inset-inline-start: 50%; translate: 50% -50%;
    width: clamp(84px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%; background: #fff;
    display: grid; place-items: center; z-index: 2;
    box-shadow: 0 0 0 10px rgba(255,255,255,.55), 0 20px 40px -12px rgba(42,15,51,.45);
}
.wings-emblem img { width: 74%; }
.hero-pulse { grid-column: 1 / -1; height: 56px; margin-top: -.25rem; color: var(--violet); pointer-events: none; }
.hero-pulse path { stroke-width: 2.5; }
.hero-pulse path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 2.4s .4s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.75rem; color: var(--ink-2); font-weight: 500; }
.hero-facts span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts .icon { color: var(--olive); }

@media (max-width: 720px) {
    .wings { grid-template-columns: 1fr; }
    .wing { min-height: 220px; }
    .wing-speech { border-radius: 32px 96px 32px 32px; }
    .wing-ot { border-radius: 32px 32px 96px 32px; }
    .wing-speech, .wing-ot { padding-inline: 1.5rem; }
    .wings-emblem { width: 72px; box-shadow: 0 0 0 6px rgba(255,255,255,.6), 0 12px 24px -10px rgba(42,15,51,.45); }
}

/* ---------- About / evidence-based practice ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-text { max-width: 62ch; }
.about-text .lead { font-size: var(--step-1); color: var(--ink); font-weight: 500; line-height: 1.9; }
.about-text p:not(.lead) { text-align: start; }
@media (min-width: 700px) { .about-text p:not(.lead) { text-align: justify; } }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.signature img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.signature strong { display: block; color: var(--ink); }
.signature span { font-size: .9rem; color: var(--muted); }

.ebp-figure { margin: 0; }
.ebp { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.ebp-circle {
    position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 1.2rem; font-weight: 700; line-height: 1.6; font-size: clamp(.85rem, .7rem + .5vw, 1rem);
    mix-blend-mode: multiply;
}
.ebp-research { top: 0; inset-inline-start: 20%; background: #e3d0ec; color: var(--violet-deep); align-items: flex-start; padding-top: 18%; }
.ebp-clinical { bottom: 2%; inset-inline-start: 0; background: #dfe9bd; color: var(--olive-ink); justify-content: flex-start; padding-inline-start: 12%; }
.ebp-client { bottom: 2%; inset-inline-end: 0; background: #f3d9c9; color: #7a3a14; justify-content: flex-end; padding-inline-end: 12%; }
.ebp-core { position: absolute; top: 52%; left: 50%; translate: -50% -50%; background: #fff; border-radius: 999px; padding: .4rem 1rem; font-weight: 900; color: var(--ink); box-shadow: 0 6px 20px -8px rgba(42,15,51,.4); white-space: nowrap; font-size: .95rem; }
.ebp-caption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1rem; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row {
    display: grid; grid-template-columns: minmax(180px, .9fr) 2fr auto; gap: clamp(1rem, 4vw, 3rem);
    align-items: start; padding-block: clamp(1.5rem, 3.5vw, 2.5rem); border-bottom: 1px solid var(--line);
    position: relative;
}
.service-row h3 { font-size: var(--step-2); font-weight: 900; margin: 0; display: flex; align-items: center; gap: .75rem; }
.service-row h3::before { content: ""; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--dot, var(--violet)); flex: none; }
.service-row p { margin: 0; color: var(--muted); max-width: 62ch; }
.service-row .link-more { white-space: nowrap; margin-top: .35rem; }
.service-row.speech { --dot: var(--olive); }
.service-row.ot { --dot: var(--violet); }
.service-row.group { --dot: #c26a3a; }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; gap: .6rem; } }

/* ---------- Team ---------- */
.team-group + .team-group { margin-top: 3rem; }
.team-group h3 { font-size: var(--step-1); color: var(--muted); font-weight: 700; margin-bottom: 1.25rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.person { text-align: center; }
.person-photo {
    aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden;
    background: linear-gradient(180deg, var(--violet-soft), var(--olive-soft)); margin-bottom: 1rem;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.person .role { color: var(--violet); font-weight: 700; font-size: .92rem; }
.person p { color: var(--muted); font-size: .92rem; line-height: 1.8; margin: .5rem 0 0; }
.person .social { display: flex; justify-content: center; gap: .4rem; margin-top: .75rem; }

.social a, .social-btn {
    width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--mist); color: var(--ink); border: 1px solid var(--line); transition: background .2s, color .2s;
}
.social a:hover, .social-btn:hover { background: var(--violet); color: #fff; border-color: var(--violet); }

/* ---------- Horizontal rail (products) ---------- */
.rail-wrap { position: relative; }
.rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin;
    overscroll-behavior-x: contain;
}
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: .5rem; }
.rail-nav button {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s;
}
.rail-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.product { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); height: 100%; }
.product-media { aspect-ratio: 1; background: var(--mist); position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-tag { position: absolute; top: .75rem; inset-inline-start: .75rem; background: #fff; color: var(--ink-2); font-size: .78rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line); }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-body h3 { font-size: 1.05rem; line-height: 1.7; margin: 0; }
.product-body h3 a { color: var(--ink); text-decoration: none; }
.product-body h3 a::after { content: ""; position: absolute; inset: 0; }
.product { position: relative; }
.product:hover { border-color: var(--violet); }
.price { font-weight: 900; color: var(--ink); font-size: 1.1rem; margin-top: auto; }
.price small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.price-free { color: var(--olive-ink); }

/* ---------- Articles ---------- */
.articles-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.post-feature { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.post-feature .post-media { aspect-ratio: 16 / 10; border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 6px; overflow: hidden; background: var(--mist); }
.post-feature h3 { font-size: var(--step-2); font-weight: 900; line-height: 1.55; margin: 0; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-feature:hover .post-media img, .post-item:hover .post-media img { transform: scale(1.04); }
.post-list { display: grid; gap: 1.25rem; align-content: start; }
.post-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.post-item:last-child { border-bottom: 0; }
.post-item .post-media { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--mist); }
.post-item h3 { font-size: 1.05rem; line-height: 1.75; margin: 0 0 .2rem; }
.post-title-link { color: var(--ink); text-decoration: none; }
.post-title-link::after { content: ""; position: absolute; inset: 0; }
.post-title-link:hover { color: var(--violet); }
.meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .85rem; }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }
.excerpt { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .articles-layout { grid-template-columns: 1fr; } }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.post-card { position: relative; display: flex; flex-direction: column; gap: .75rem; }
.post-card .post-media { aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--mist); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-card h2, .post-card h3 { font-size: 1.15rem; line-height: 1.7; margin: 0; }

/* ---------- Interviews ---------- */
.talks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.talk { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; padding: 1.25rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.talk:hover { border-color: var(--olive); }
.talk-media { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--olive-soft); }
.talk-media img { width: 100%; height: 100%; object-fit: cover; }
.talk h3 { font-size: 1.02rem; line-height: 1.75; margin: 0 0 .25rem; }
.talk .quote-mark { color: var(--olive); width: 28px; height: 28px; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery a { display: block; margin-bottom: 1rem; border-radius: 18px; overflow: hidden; break-inside: avoid; background: var(--mist); }
.gallery img { width: 100%; transition: transform .5s, filter .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 1rem; }
.gallery-strip a { border-radius: 20px; overflow: hidden; background: var(--mist); position: relative; }
.gallery-strip a:first-child { grid-row: span 2; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-strip a:hover img { transform: scale(1.04); }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(42,15,51,.55); color: #fff; font-weight: 900; font-size: 1.3rem; }
@media (max-width: 720px) { .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; } .gallery-strip a:first-child { grid-column: span 2; grid-row: auto; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20,6,25,.92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev { inset-inline-start: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 1rem; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 1rem; left: 50%; translate: -50% 0; color: rgba(255,255,255,.8); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #e9dcef; position: relative; overflow: hidden; }
.contact h2, .contact h3 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-phones { display: grid; gap: .25rem; margin: 1.5rem 0; }
.contact-phones a { color: #fff; text-decoration: none; font-weight: 900; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.5; width: fit-content; }
.contact-phones a:hover { color: #d9b4e6; }
.contact-phones small { display: block; font-size: .85rem; font-weight: 500; color: #bfa8c9; }
.contact address { font-style: normal; line-height: 2; color: #e9dcef; max-width: 46ch; }
.contact .social a { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.15); }
.contact .social a:hover { background: #fff; color: var(--ink); }
.contact .pulse { color: #8d5aa0; position: absolute; top: 0; inset-inline: 0; opacity: .5; }
.route-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.route-apps a { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem .5rem; border-radius: 16px; background: rgba(255,255,255,.07); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; border: 1px solid rgba(255,255,255,.12); }
.route-apps a:hover { background: rgba(255,255,255,.15); color: #fff; }
.route-apps img { width: 36px; height: 36px; object-fit: contain; }
.map-box { border-radius: var(--radius-l) 8px var(--radius-l) var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; background: #3a1d44; position: relative; display: grid; place-items: center; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { display: grid; justify-items: center; gap: .75rem; color: #e9dcef; text-align: center; padding: 1rem; }
.map-load .icon { width: 44px; height: 44px; color: #d9b4e6; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1e0a25; color: #bfa8c9; padding-block: 3.5rem 1.5rem; font-size: .95rem; }
.site-footer a { color: #e9dcef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 52px; background: #fff; border-radius: 14px; padding: 6px; }
.footer-brand strong { color: #fff; font-size: 1.2rem; font-weight: 900; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Floating contact (mobile) ---------- */
.quick-contact { position: fixed; bottom: 1rem; inset-inline-start: 1rem; z-index: 40; display: none; gap: .5rem; }
.quick-contact a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -8px rgba(42,15,51,.6); }
.quick-contact .qc-call { background: var(--violet); }
.quick-contact .qc-wa { background: #1f9d55; }
.quick-contact .icon { width: 26px; height: 26px; }
@media (max-width: 760px) { .quick-contact { display: flex; } }

/* ---------- Page header / breadcrumbs ---------- */
.page-hero { background: var(--mist); padding-block: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin: .25rem 0 .5rem; max-width: 26ch; }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 0; font-size: 1.1rem; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 260px; height: 260px; border-radius: var(--wing); background: var(--violet-soft); z-index: 0; }
.page-hero.olive::after { background: var(--olive-soft); }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: .25rem; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }

/* ---------- Article body ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.article-cover { border-radius: var(--radius-l); overflow: hidden; margin-bottom: 2rem; background: var(--mist); }
.article-cover img { width: 100%; }
.prose { font-size: 1.09rem; line-height: 2.1; color: #3b2a42; max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose p { text-align: start; }
@media (min-width: 700px) { .prose p { text-align: justify; } }
.prose img { border-radius: 16px; margin: 1.5rem auto; height: auto; }
.prose ul, .prose ol { padding-inline-start: 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-inline-start: 4px solid var(--olive); background: var(--olive-soft); border-radius: 0 16px 16px 0; color: var(--ink); }
.prose a { word-break: break-word; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; }
.aside-box { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.aside-card { border-radius: 22px; padding: 1.5rem; background: var(--mist); }
.aside-card h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.aside-card.cta { background: var(--violet); color: #f3e6f8; }
.aside-card.cta h3 { color: #fff; }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.aside-links a { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.7; display: block; }
.aside-links a:hover { color: var(--violet); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tags span { background: var(--mist); border: 1px solid var(--line); padding: .2rem .8rem; border-radius: 999px; font-size: .85rem; color: var(--ink-2); }
.share { display: flex; gap: .5rem; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .aside-box { position: static; } }

.reading-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--olive), var(--violet)); transform-origin: right; transform: scaleX(0); }

/* ---------- Product details ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product-detail-media { border-radius: var(--radius-l); background: var(--mist); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.product-detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 2rem; }
.product-detail .price { font-size: 1.8rem; margin: 1rem 0 1.5rem; }
.buy-box { display: grid; gap: .75rem; padding: 1.5rem; border-radius: 22px; background: var(--mist); margin-top: 1.5rem; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Filters / pager / search ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chips a { padding: .45rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.chips a:hover { border-color: var(--violet); color: var(--violet); }
.chips a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-form { display: flex; gap: .5rem; max-width: 520px; margin-top: 1.5rem; }
.search-form input { flex: 1; padding: .8rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; min-width: 0; }
.search-form input:focus { outline: none; border-color: var(--violet); }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; padding-inline: .5rem; }
.pager a:hover { border-color: var(--violet); color: var(--violet); }
.pager [aria-current="page"] { background: var(--violet); color: #fff; border-color: var(--violet); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 22px; }

/* ---------- Service page ---------- */
.service-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem 1.5rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.8; }
.checklist .icon { color: var(--olive); margin-top: .3rem; }
.faq { margin-top: 3rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .75rem 0 0; color: var(--muted); }
@media (max-width: 960px) { .service-body { grid-template-columns: 1fr; } }

/* ---------- Not found ---------- */
.not-found { text-align: center; padding-block: 5rem; }
.not-found img { width: 140px; margin: 0 auto 1.5rem; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-pulse path { stroke-dashoffset: 0; }
}

/* ---------- Dev-only DB error banner ---------- */
.dev-db-error { position: fixed; bottom: 1rem; inset-inline: 1rem; z-index: 90; background: #fdecea; color: #8a1c13; border: 1px solid #f3b5ad; border-radius: 14px; padding: 1rem 1.25rem; font-size: .9rem; line-height: 1.8; max-height: 40vh; overflow: auto; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.dev-db-error span { word-break: break-word; }

/* ---------- Post rails (articles / interviews on home) ---------- */
.rail-posts { grid-auto-columns: minmax(270px, 300px); }
.rail-posts .post-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: .75rem .75rem 1.1rem; height: 100%; transition: border-color .2s; }
.rail-posts .post-card:hover { border-color: var(--violet); }
.rail-posts .post-card .post-media { border-radius: 16px; }
.rail-posts .post-card .meta, .rail-posts .post-card h3, .rail-posts .post-card .excerpt, .rail-posts .post-card .link-more { padding-inline: .35rem; }
.rail-posts .post-card h3 { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-posts .excerpt { font-size: .92rem; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-posts .link-more { margin-top: auto; font-size: .92rem; }
.section-mist .product, .section-mist .rail-posts .post-card { background: #fff; }

/* موبایل: کارت‌ها تقریباً تمام‌عرض با لبه کارت بعدی پیدا، تا حس اسکرول افقی داشته باشد */
@media (max-width: 600px) {
    .rail, .rail-posts { grid-auto-columns: 80%; gap: .9rem; }
    .rail-nav button { display: none; }
    .section-head { align-items: start; }
    .section-head .rail-nav { width: 100%; }
    .rail { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
@media (max-width: 600px) {
    .rail .product-media { aspect-ratio: 4 / 3; }
}
