/* فونت Vazirmatn دیگر با @import لود نمی‌شود — این روش یک زنجیره‌ی پی‌درپی
   می‌ساخت (اول CSS، بعد CSS گوگل‌فونت، بعد فایل فونت) که سرعت لود اول صفحه را
   کم می‌کرد. حالا از تگ <link> با preconnect در head.ejs لود می‌شود (موازی). */

:root{
  --rose: #b8707f;
  --rose-dark: #96525f;
  --rose-light: #f3d9dd;
  --gold: #b9974a;
  --cream: #fbf5f0;
  --cream-2: #f5ebe3;
  --ink: #2c2422;
  --ink-soft: #5c5250;
  --line: #e9ddd3;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(44,36,34,.18);
  --container: 1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Vazirmatn', Tahoma, sans-serif;
  background:var(--cream);
  color:var(--ink);
  direction:rtl;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
  position:relative;
}
/* بافت نویز خیلی ظریف روی کل سایت — حس چاپ/پارچه لوکس، تقریباً نامحسوس */
body::before{
  content:'';position:fixed;inset:0;z-index:9999;pointer-events:none;
  opacity:.035;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0}
h1,h2,h3,h4{font-weight:800;line-height:1.4;margin:0 0 .6em}
p{margin:0 0 1em}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
section{padding:72px 0}
.section-tight{padding:40px 0}

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  color:#8a4a56;font-weight:700;font-size:14px; /* از rose-dark تیره‌تر برای عبور از حداقل کنتراست ۴.۵:۱ روی پس‌زمینه‌ی rose-light */
  background:var(--rose-light);padding:6px 16px;border-radius:999px;margin-bottom:16px;
}
.section-title{font-size:clamp(26px,3.2vw,38px);margin-bottom:12px}
.section-sub{color:var(--ink-soft);max-width:680px;margin-bottom:36px;font-size:16px}
.center{text-align:center;margin-inline:auto}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 28px;border-radius:999px;font-weight:700;font-size:15px;
  border:2px solid transparent;cursor:pointer;transition:.25s;
}
.btn-primary{background:var(--rose);color:#fff;box-shadow:0 8px 20px -8px rgba(184,112,127,.6)}
.btn-primary:hover{background:var(--rose-dark);transform:translateY(-2px)}
.btn-outline{border-color:var(--rose);color:var(--rose-dark)}
.btn-outline:hover{background:var(--rose-light)}
.btn-gold{background:var(--gold);color:#fff}
.btn-sm{padding:10px 20px;font-size:13px}

/* Header */
.site-header{
  /* بدون backdrop-filter عمداً: این ویژگی روی هر عنصر اجدادی، containing block جدیدی
     برای فرزندهای position:fixed می‌سازد (طبق اسپک CSS) — و دقیقاً همین باعث می‌شد منوی
     موبایل (که position:fixed دارد و فرزند این هدر است) به‌جای کل صفحه، نسبت به خود هدر
     (که فقط چند ده پیکسل ارتفاع دارد) جایگذاری شود و عملاً نامرئی/بریده به‌نظر برسد. */
  position:sticky;top:0;z-index:50;background:rgba(251,245,240,.97);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;color:var(--ink)}
.logo svg{height:42px;width:auto}
.nav{display:flex;gap:28px;align-items:center}
.nav a{font-weight:600;font-size:15px;color:var(--ink-soft);padding:6px 2px;border-bottom:2px solid transparent}
.nav a:hover,.nav a.active{color:var(--rose-dark);border-color:var(--rose)}
.header-cta{display:flex;gap:10px;align-items:center}
.menu-toggle{display:none;background:none;border:none;font-size:26px;cursor:pointer;color:var(--ink)}

@media (max-width: 1080px){
  .nav{
    display:none;flex-direction:column;
    position:fixed;top:64px;right:0;bottom:0;left:0;
    width:100%;height:calc(100% - 64px);
    background:var(--cream);
    padding:30px;gap:6px;border-top:1px solid var(--line);
    z-index:200;overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  .nav.open{display:flex}
  .nav a{padding:14px 4px;border-bottom:1px solid var(--line);width:100%}
  .menu-toggle{display:block}
  .header-cta .btn-outline{display:none}
}

/* Hero */
.hero{
  position:relative;overflow:hidden;padding:70px 0 60px;
  background:radial-gradient(1100px 500px at 80% -10%, var(--rose-light), transparent 60%),
             radial-gradient(800px 400px at -10% 110%, #fff3e6, transparent 60%);
}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:50px;align-items:center}
.hero h1{
  font-size:clamp(32px,4.4vw,52px);
  background:linear-gradient(90deg,#6e2f3a 0%,#7a5a12 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
@supports not (background-clip: text){.hero h1{color:var(--ink);background:none}}
.hero .lead{font-size:18px;color:var(--ink-soft);max-width:520px;margin-bottom:28px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:26px}
.hero-trust{display:flex;gap:22px;flex-wrap:wrap;color:var(--ink-soft);font-size:14px}
.hero-trust span{display:flex;align-items:center;gap:6px;font-weight:600}
.hero-art{
  position:relative;aspect-ratio:1/1;border-radius:32px;
  background:linear-gradient(160deg,var(--rose-light),var(--cream-2));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 30px 60px -25px rgba(150,82,95,.45), inset 0 1px 0 rgba(255,255,255,.6);
  animation:floatY 6s ease-in-out infinite;
}
.hero-art svg{width:70%;height:70%;filter:drop-shadow(0 12px 18px rgba(150,82,95,.25))}
.hero-art::before,.hero-art::after{
  content:'';position:absolute;border-radius:50%;filter:blur(2px);opacity:.55;z-index:-1;
}
.hero-art::before{width:90px;height:90px;background:var(--gold);top:-20px;left:-20px;animation:floatY 5s ease-in-out infinite}
.hero-art::after{width:60px;height:60px;background:var(--rose);bottom:-14px;right:10px;animation:floatY 7s ease-in-out infinite reverse}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@media (prefers-reduced-motion: reduce){.hero-art,.hero-art::before,.hero-art::after{animation:none}}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-art{max-width:380px;margin:0 auto}}

/* هدر با عکس/ویدیوی تمام‌عرض پشت‌زمینه + پنل شیشه‌ای متن روش —
   اینجا افکت شیشه‌ای واقعاً «حس می‌شه» چون پشتش یه عکس واقعی با جزئیات زیاده،
   نه یه گرادیان صاف (که تارشدنش عملاً هیچ تفاوت بصری نداره). */
.hero-photo{padding:0;position:relative;overflow:hidden;min-height:560px;display:flex;align-items:center}
.hero-photo .hero-bg{position:absolute;inset:0;z-index:0}
.hero-photo .hero-bg img,.hero-photo .hero-bg video{width:100%;height:100%;object-fit:cover}
.hero-photo .hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(44,36,34,.1), rgba(44,36,34,.32))}
.hero-photo .container{position:relative;z-index:1;padding:70px 20px}
.hero-glass-panel{max-width:600px;padding:40px 36px;border-radius:28px;text-align:center;margin-inline:auto}
.hero-glass-panel .hero-actions{justify-content:center}
.hero-glass-panel .eyebrow{margin-inline:auto}
.hero-glass-panel .lead{margin-inline:auto}
.hero-glass-panel .hero-trust{justify-content:center}
@media (max-width:700px){.hero-photo{min-height:640px}.hero-glass-panel{padding:28px 22px}}

/* جداکننده‌ی موجی بین بخش‌ها */
.wave-divider{display:block;width:100%;height:44px;position:relative;z-index:2;margin-bottom:-1px}
@media (max-width:700px){.wave-divider{height:26px}}

/* Scroll reveal */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:translateY(0)}

/* 3D tilt cards */
.tilt{transition:transform .25s ease, box-shadow .25s ease;transform-style:preserve-3d;will-change:transform}
.tilt:hover{box-shadow:0 26px 40px -18px rgba(44,36,34,.28)}

.site-header.scrolled{box-shadow:0 8px 24px -16px rgba(44,36,34,.25)}

/* Services grid */
.grid{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.grid-3,.grid-4{grid-template-columns:1fr}}

.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:28px;transition:.25s;display:flex;flex-direction:column;gap:12px;height:100%;
}
.card:hover{box-shadow:var(--shadow);transform:translateY(-4px);border-color:transparent}
.card .icon{
  width:52px;height:52px;border-radius:14px;
  background:linear-gradient(150deg,var(--rose-light),#eec3ca);
  display:flex;align-items:center;justify-content:center;color:var(--rose-dark);
  box-shadow:0 8px 16px -6px rgba(184,112,127,.45), inset 0 1px 1px rgba(255,255,255,.6);
}
.card:hover .icon{transform:scale(1.08) rotate(-4deg);transition:transform .3s ease}
.card .icon svg{width:26px;height:26px}
.card h3{font-size:18px;margin-bottom:4px}
.card p{color:var(--ink-soft);font-size:14.5px;margin-bottom:0}
.card .more{margin-top:auto;color:var(--rose-dark);font-weight:700;font-size:14px}

/* Why us */
.why-list{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
@media (max-width:700px){.why-list{grid-template-columns:1fr}}
.why-item{
  display:flex;gap:14px;align-items:flex-start;padding:20px;border-radius:16px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.why-item:hover{transform:translateY(-3px);box-shadow:0 18px 30px -18px rgba(44,36,34,.25)}
.why-item .dot{
  flex:none;width:38px;height:38px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;
  background:linear-gradient(145deg,var(--rose),var(--rose-dark));
  box-shadow:0 6px 14px -4px rgba(150,82,95,.6), inset 0 1px 1px rgba(255,255,255,.4);
}
.why-item h3{margin-bottom:4px;font-size:16px}
.why-item p{color:var(--ink-soft);font-size:14px;margin:0}

/* Band / CTA */
.band{background:linear-gradient(120deg,var(--rose-dark),var(--rose));color:#fff;border-radius:28px;padding:50px;display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap}
.band h2{color:#fff;margin-bottom:6px}
.band p{color:rgba(255,255,255,.85);margin:0}
.band .btn-primary{background:#fff;color:var(--rose-dark)}
.band .btn-primary:hover{background:var(--cream)}

/* Contact / map */
.info-list{display:flex;flex-direction:column;gap:18px}
.info-item{display:flex;gap:14px;align-items:flex-start}
.info-item .ic{flex:none;width:44px;height:44px;border-radius:12px;background:var(--rose-light);color:var(--rose-dark);display:flex;align-items:center;justify-content:center}
.info-item h2{margin:0 0 2px;font-size:15px;font-weight:700}
.info-item p{margin:0;color:var(--ink-soft);font-size:14.5px}
.map-frame{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);height:100%;min-height:320px}
.map-frame iframe{width:100%;height:100%;min-height:320px;border:0}

/* Blog */
.article-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;height:100%}
.article-card .thumb{aspect-ratio:16/10;background:linear-gradient(135deg,var(--rose-light),var(--cream-2));display:flex;align-items:center;justify-content:center;color:var(--rose-dark)}
.article-card .thumb svg{width:34px;height:34px}
.article-card .body{padding:20px;display:flex;flex-direction:column;gap:8px;flex:1}
.article-card h3{font-size:17px;margin:0}
.article-card p{color:var(--ink-soft);font-size:14px;margin:0}
.article-card .tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{background:var(--cream-2);color:var(--ink-soft);font-size:12px;padding:3px 10px;border-radius:999px}
.article-card .read-more{margin-top:auto;color:var(--rose-dark);font-weight:700;font-size:14px}

.article-body h2{font-size:24px;margin-top:1.4em}
.article-body h3{font-size:19px;margin-top:1.2em}
.article-body p{color:#3a3230;font-size:16.5px;text-align:justify;text-justify:inter-word}
.article-body ul{margin:0 0 1.2em;padding-inline-start:22px}
.article-body li{margin-bottom:8px;color:#3a3230}
.article-body img{border-radius:12px;margin:8px 0}
.article-body a{color:var(--rose-dark);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.article-body a:hover{color:var(--rose)}
.article-body .ql-align-center{text-align:center}
.article-body .ql-align-right{text-align:right}
.article-body .ql-align-left{text-align:left}
.article-body .ql-align-justify{text-align:justify}
.article-body img.ql-align-center,.article-body p.ql-align-center img{display:block;margin-inline:auto}
.article-body img.ql-align-left,.article-body p.ql-align-left img{float:left;margin-inline-end:16px}
.article-body img.ql-align-right,.article-body p.ql-align-right img{float:right;margin-inline-start:16px}
.article-hero{background:var(--cream-2);border-radius:24px;padding:40px;margin-bottom:30px}
.breadcrumb{font-size:13px;color:var(--ink-soft);margin-bottom:14px}
.breadcrumb a{color:var(--rose-dark);font-weight:600}

.pagination{display:flex;gap:8px;justify-content:center;margin-top:40px}
.pagination a,.pagination span{padding:8px 14px;border-radius:10px;border:1px solid var(--line);font-weight:700;font-size:14px}
.pagination .active{background:var(--rose);color:#fff;border-color:var(--rose)}

/* Footer */
.site-footer{background:#2c2422;color:#e9ddd3;padding:56px 0 24px;margin-top:60px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}
@media (max-width:800px){.footer-grid{grid-template-columns:1fr}}
.site-footer h3{color:#fff;font-size:15px;margin-bottom:16px}
.site-footer a{color:#cbb;font-size:14px}
.site-footer .foot-nav{display:flex;flex-direction:column;gap:10px}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:36px;padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:13px;color:#a99}
.social-row{display:flex;gap:10px}
.social-row a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center}
.social-row a:hover{background:var(--rose)}

/* Floating actions */
.floating-actions{position:fixed;left:18px;bottom:18px;z-index:60;display:flex;flex-direction:column;gap:10px}
.fab{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px -6px rgba(0,0,0,.35);color:#fff}
.fab-whatsapp{background:#25D366}
.fab-call{background:var(--rose)}

/* Page hero (inner pages) */
.page-hero{background-color:var(--cream-2);padding:50px 0}
.page-hero, .dotted-bg{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23b8707f' fill-opacity='0.18'/%3E%3Ccircle cx='70' cy='50' r='2' fill='%23b9974a' fill-opacity='0.18'/%3E%3Ccircle cx='40' cy='90' r='2' fill='%23b8707f' fill-opacity='0.18'/%3E%3Ccircle cx='100' cy='100' r='2' fill='%23b9974a' fill-opacity='0.18'/%3E%3C/svg%3E");
}
.page-hero h1{font-size:clamp(26px,3.4vw,38px);margin-bottom:8px}
.page-hero p{color:var(--ink-soft);max-width:640px}

/* Admin */
.admin-body{background:#f4f1ee;min-height:100vh;font-family:'Vazirmatn',sans-serif}
.admin-shell{max-width:1000px;margin:0 auto;padding:30px 20px}
.admin-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}
.admin-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.admin-table{width:100%;border-collapse:collapse}
.admin-table th,.admin-table td{text-align:right;padding:12px;border-bottom:1px solid var(--line);font-size:14px}

/* دیت‌پیکر شمسی */
.jdp{display:flex;align-items:center;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.jdp-nav-btn{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:18px;cursor:pointer;color:var(--ink);line-height:1;display:flex;align-items:center;justify-content:center}
.jdp-nav-btn:hover{background:var(--rose-light)}
.jdp-field{position:relative}
.jdp-input{width:150px;padding:9px 14px;border:1px solid var(--line);border-radius:10px;font-family:'Vazirmatn',sans-serif;font-size:15px;font-weight:700;text-align:center;background:#fff;cursor:pointer;color:var(--ink)}
.jdp-popup{position:absolute;top:calc(100% + 8px);right:0;z-index:40;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.12);padding:14px;width:280px}
.jdp-popup-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.jdp-popup-head .jdp-title{font-weight:700;font-size:14px}
.jdp-weekdays,.jdp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.jdp-weekdays span{font-size:11px;color:var(--ink-soft);padding:4px 0}
.jdp-days button{border:none;background:transparent;padding:8px 0;border-radius:8px;font-size:13px;cursor:pointer;font-family:'Vazirmatn',sans-serif;color:var(--ink)}
.jdp-days button:hover{background:var(--rose-light)}
.jdp-days button.jdp-today{font-weight:700;color:var(--rose-dark)}
.jdp-days button.jdp-selected{background:var(--rose-dark);color:#fff}
.jdp-days button:empty{cursor:default}
.jdp-days button:empty:hover{background:transparent}
.status-pill{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}
.status-published{background:#dff5e6;color:#1e7a44}
.status-draft{background:#f3e6cf;color:#8a5a10}
.form-field{margin-bottom:18px}
.form-field label{display:block;font-weight:700;margin-bottom:6px;font-size:14px}
.form-field input[type=text],.form-field input[type=password],.form-field textarea,.form-field select{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font-family:inherit;font-size:14px;background:#fff
}
.form-field textarea{min-height:120px}
#editor{min-height:420px;background:#fff;border:1px solid var(--line);border-radius:10px}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center}
.login-box{width:100%;max-width:380px;background:#fff;padding:36px;border-radius:18px;border:1px solid var(--line)}
.error-msg{background:#fbe2e2;color:#a02121;padding:10px 14px;border-radius:10px;font-size:14px;margin-bottom:16px}

/* ===================== نئون ملایم (فقط روی دکمه‌های اصلی دعوت‌به‌اقدام) =====================
   عمداً نئون تند/رنگارنگ استفاده نشده — با هویت آرام و لوکس کلینیک زیبایی هم‌خوانی نداشت.
   به‌جاش یه هاله‌ی نرم با رنگ برند (رز/طلایی) که موقع اسکرول به دکمه چشم می‌آد ولی زننده نیست. */
@keyframes neonPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(184,112,127,.55),0 8px 20px -8px rgba(184,112,127,.6)}
  50%{box-shadow:0 0 22px 4px rgba(184,112,127,.45),0 8px 20px -8px rgba(184,112,127,.6)}
}
.btn-primary,.sticky-cta a,.op-submit-btn{animation:neonPulse 2.8s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){.btn-primary,.sticky-cta a,.op-submit-btn{animation:none}}

/* ===================== نوار چسبان تماس در موبایل ===================== */
.sticky-cta{
  display:none;position:fixed;right:0;left:0;bottom:0;z-index:60;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(251,245,240,.95);border-top:1px solid var(--line);
  gap:10px;
}
.sticky-cta a{
  flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 10px;border-radius:14px;font-weight:800;font-size:14.5px;
}
.sticky-cta a.call{background:var(--rose);color:#fff}
.sticky-cta a.whatsapp{background:#25D366;color:#fff;animation:none}
@media (max-width:760px){
  .sticky-cta{display:flex}
  .floating-actions{display:none}
  body{padding-bottom:64px}
}

/* ===================== آکاردئون سوالات متداول ===================== */
.faq-section{margin-top:50px}
.faq-list{display:flex;flex-direction:column;gap:12px}
.faq-item{
  background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;
}
.faq-item summary{
  list-style:none;cursor:pointer;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;
  font-weight:700;font-size:15.5px;gap:14px;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary .q-icon{
  flex:none;width:30px;height:30px;border-radius:50%;background:var(--rose-light);color:var(--rose-dark);
  display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;transition:transform .25s ease;
}
.faq-item[open] summary .q-icon{transform:rotate(45deg);background:var(--rose);color:#fff}
.faq-item .faq-answer{padding:0 20px 18px;color:var(--ink-soft);font-size:14.5px;line-height:1.9;white-space:pre-line}

/* ===================== نظرات مراجعین ===================== */
.testimonial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media (max-width:900px){.testimonial-grid{grid-template-columns:1fr}}
.testimonial-card{
  background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;position:relative;
  display:flex;flex-direction:column;gap:12px;height:100%;
}
.testimonial-card .quote-mark{position:absolute;top:14px;left:20px;font-size:44px;color:var(--rose-light);font-family:Georgia,serif;line-height:1}
.testimonial-card .stars{color:var(--gold);font-size:15px;letter-spacing:2px}
.testimonial-card p{color:var(--ink-soft);font-size:14.5px;margin:0;flex:1}
.testimonial-card .name{font-weight:800;font-size:14.5px}

.testimonial-form{background:var(--cream-2);border-radius:20px;padding:26px;margin-top:40px}
.rating-input{display:flex;gap:6px;flex-direction:row-reverse;justify-content:flex-end}
.rating-input input{display:none}
.rating-input label{font-size:26px;color:var(--line);cursor:pointer}
.rating-input input:checked ~ label,.rating-input label:hover,.rating-input label:hover ~ label{color:var(--gold)}
.honeypot-field{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}

/* ===================== اسلایدر قبل/بعد =====================
   عمداً input[type=range] با direction:ltr ایزوله شده (صرف‌نظر از rtl صفحه) تا
   رفتار «مقدار ۰ = چپ‌ترین نقطه» در همه‌ی مرورگرها یکسان و قابل پیش‌بینی بماند؛
   بقیه‌ی محاسبات (left/clip-path) هم بر همین مبنای فیزیکی (نه منطقی/RTL) هستند. */
.ba-slider{position:relative;aspect-ratio:4/3;border-radius:20px;overflow:hidden;user-select:none;touch-action:pan-y;direction:ltr}
.ba-slider img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.ba-slider .ba-after{clip-path:inset(0 calc(100% - var(--ba-val,50%)) 0 0)}
.ba-slider .ba-tag{position:absolute;top:12px;background:rgba(44,36,34,.65);color:#fff;font-size:12px;font-weight:700;padding:4px 12px;border-radius:999px;z-index:2}
.ba-slider .ba-tag.before{right:12px}
.ba-slider .ba-tag.after{left:12px}
.ba-slider input[type=range]{
  position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;z-index:3;direction:ltr;
}
.ba-handle{
  position:absolute;top:0;bottom:0;width:3px;background:#fff;left:var(--ba-val,50%);transform:translateX(-50%);
  z-index:2;box-shadow:0 0 0 1px rgba(0,0,0,.1);pointer-events:none;
}
.ba-handle::after{
  content:'⇔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:38px;height:38px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:16px;color:var(--rose-dark);box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.ba-caption{margin-top:10px;text-align:center;color:var(--ink-soft);font-size:13.5px;direction:rtl}

/* ===================== شیشه‌ای (Glassmorphism) =====================
   عمداً در انتهای فایل تا مطمئناً پس‌زمینه/بوردر پیش‌فرض کارت‌ها (why-item،
   testimonial-card، faq-item) را override کند. فقط روی کارت‌هایی استفاده شده
   که زیرشون پس‌زمینه‌ی رنگی/گرادیانی (mesh-bg) هست، وگرنه جلوه‌ی شیشه‌ای روی
   زمینه‌ی تخت سفید/کرم اصلاً به چشم نمی‌آد. */
.glass{
  background:rgba(255,255,255,.22) !important;
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  border:1px solid rgba(255,255,255,.55) !important;
  box-shadow:0 8px 32px -12px rgba(150,82,95,.25);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .glass{background:rgba(255,255,255,.85) !important} /* مرورگرهای بدون پشتیبانی: پس‌زمینه‌ی تقریباً کدر */
}
/* روی هدر عکس‌دار، شیشه باید کم‌رنگ‌تر باشه تا عکس زیرش واضح دیده بشه؛
   ولی چون پس‌زمینه‌اش خیلی روشن‌تر از بقیه بخش‌هاست، متن‌ها رنگ تیره‌تر می‌گیرن. */
.hero-glass-panel{background:rgba(255,255,255,.28) !important}
.hero-glass-panel .lead{color:var(--ink)}
.hero-glass-panel .hero-trust{color:var(--ink)}

/* زمینه‌ی گرادیانی برای بخش‌هایی که کارت شیشه‌ای روشون قرار می‌گیره — عمداً
   پررنگ‌تر و با لکه‌های بیشتر از یه گرادیان معمولی، چون تارشدن یه پس‌زمینه‌ی
   خیلی صاف و کم‌رنگ عملاً به چشم نمی‌آد؛ هرچی زیر شیشه شلوغ‌تر/پررنگ‌تر باشه
   جلوه‌ی blur واضح‌تر دیده می‌شه. */
.mesh-bg{
  background-color:var(--cream-2);
  background-image:
    radial-gradient(500px 320px at 8% 15%, rgba(184,112,127,.55), transparent 55%),
    radial-gradient(420px 300px at 92% 25%, rgba(185,151,74,.5), transparent 55%),
    radial-gradient(480px 340px at 25% 90%, rgba(185,151,74,.4), transparent 55%),
    radial-gradient(460px 320px at 85% 85%, rgba(184,112,127,.45), transparent 55%);
}

/* ===================== نوار پیشرفت مطالعه (مقالات) ===================== */
.scroll-progress{position:fixed;top:0;right:0;left:0;height:3px;z-index:100;width:0%;background:linear-gradient(90deg,var(--rose),var(--gold))}

/* ===================== دکمه بازگشت به بالا با حلقه پیشرفت ===================== */
.back-to-top{
  position:fixed;left:18px;bottom:18px;z-index:59;width:50px;height:50px;
  display:none;align-items:center;justify-content:center;border:none;padding:0;
  background:#fff;border-radius:50%;box-shadow:0 8px 20px -6px rgba(44,36,34,.3);cursor:pointer;
}
.back-to-top.show{display:flex}
.back-to-top svg{position:absolute;inset:0;transform:rotate(-90deg);width:50px;height:50px}
.back-to-top svg circle{fill:none;stroke-width:3}
.back-to-top svg circle.bt-bg{stroke:var(--line)}
.back-to-top svg circle.bt-fg{stroke:var(--rose);stroke-linecap:round}
.back-to-top .arrow{position:relative;z-index:1;color:var(--rose-dark);font-size:18px;line-height:1}
@media (max-width:760px){.back-to-top{bottom:78px}}

/* ===================== لایت‌باکس عکس ===================== */
.lightbox-overlay{
  position:fixed;inset:0;background:rgba(20,16,15,.92);z-index:300;
  display:flex;align-items:center;justify-content:center;padding:30px;
  opacity:0;visibility:hidden;transition:opacity .25s ease;
}
.lightbox-overlay.open{opacity:1;visibility:visible}
.lightbox-overlay img{max-width:92vw;max-height:88vh;border-radius:14px;transform:scale(.94);transition:transform .25s ease;cursor:default}
.lightbox-overlay.open img{transform:scale(1)}
.lightbox-close{
  position:absolute;top:18px;left:18px;color:#fff;font-size:22px;width:42px;height:42px;
  background:rgba(255,255,255,.15);border:none;border-radius:50%;cursor:pointer;
}
[data-lightbox]{cursor:zoom-in}

/* ===================== حباب‌های پارالاکس تزئینی پس‌زمینه هدر ===================== */
.parallax-blob{position:absolute;border-radius:50%;filter:blur(40px);opacity:.35;pointer-events:none;z-index:0;will-change:transform}
@media (prefers-reduced-motion: reduce){.parallax-blob{display:none}}
