/* =====================================================================
   استایل بخش‌های CMS در سایت (مقاله، صفحهٔ ساده، سوالات متداول)
   فقط از متغیرهای رنگ styles.css استفاده می‌کند؛ با هر پالتی که سایت داشته باشد هماهنگ می‌ماند.
   ===================================================================== */

/* --- مقاله و صفحهٔ ساده --- */
.cms-article{padding:56px 0 24px;}
.cms-article .container{max-width:820px;}
.cms-article .article-cover{margin:0 0 32px;border-radius:var(--radius-m);overflow:hidden;box-shadow:var(--shadow-md);}
.cms-article .article-cover img{display:block;width:100%;height:auto;}
.article-meta{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;margin:14px 0 0;color:rgba(255,255,255,.85);font-size:.92rem;}
.cms-content{color:var(--ink);font-size:1.05rem;line-height:2.2;}
.cms-content > *:first-child{margin-top:0;}
.cms-content p{margin:0 0 1.2em;}
.cms-content h2{font-size:1.6rem;font-weight:800;margin:1.8em 0 .6em;color:var(--deep);line-height:1.6;}
.cms-content h3{font-size:1.3rem;font-weight:800;margin:1.6em 0 .5em;color:var(--deep);line-height:1.6;}
.cms-content h4{font-size:1.1rem;font-weight:700;margin:1.4em 0 .4em;color:var(--ink-soft);}
.cms-content ul,.cms-content ol{margin:0 0 1.2em;padding-inline-start:1.6em;}
.cms-content ul{list-style:disc;}
.cms-content ol{list-style:decimal;}
.cms-content li{margin-bottom:.4em;}
.cms-content a{color:var(--sage-dark);text-decoration:underline;text-underline-offset:3px;}
.cms-content a:hover{color:var(--deep);}
.cms-content img{max-width:100%;height:auto;border-radius:var(--radius-s);margin:1em auto;display:block;}
.cms-content figure{margin:1.6em 0;}
.cms-content figcaption{text-align:center;font-size:.85rem;color:var(--ink-soft);margin-top:8px;}
.cms-content blockquote{margin:1.6em 0;padding:16px 22px;border-inline-start:4px solid var(--sage);background:var(--sage-pale);border-radius:var(--radius-s);color:var(--ink);}
.cms-content hr{border:0;border-top:1px solid var(--gray);margin:2em 0;}
.cms-content table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:.95rem;}
.cms-content th,.cms-content td{border:1px solid var(--gray);padding:10px 12px;text-align:start;}
.cms-content th{background:var(--sage-pale);color:var(--deep);}

/* --- مسیر صفحه (breadcrumb) --- */
.breadcrumb{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 0 14px;font-size:.85rem;color:rgba(255,255,255,.8);}
.breadcrumb a{color:rgba(255,255,255,.9);}
.breadcrumb a:hover{text-decoration:underline;}
.breadcrumb span[aria-hidden]{opacity:.6;}

/* --- سوالات متداول --- */
.cms-faq{padding:64px 0;background:var(--sage-pale);}
.cms-faq h2{text-align:center;font-size:1.7rem;font-weight:800;color:var(--deep);margin-bottom:28px;}
.faq-list{max-width:820px;margin-inline:auto;display:flex;flex-direction:column;gap:12px;}
.faq-item{background:var(--white);border:1.5px solid var(--sage-pale);border-radius:var(--radius-s);overflow:hidden;transition:border-color .3s,box-shadow .3s;}
.faq-item[open]{border-color:var(--sage);box-shadow:var(--shadow-sm);}
.faq-item summary{cursor:pointer;list-style:none;padding:16px 20px;font-weight:700;color:var(--deep);display:flex;justify-content:space-between;align-items:center;gap:12px;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+";flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--sage-pale);color:var(--deep);display:grid;place-items:center;font-size:1.2rem;font-weight:700;transition:transform .3s var(--ease),background .3s;}
.faq-item[open] summary::after{content:"−";background:var(--deep);color:var(--white);}
.faq-answer{padding:0 20px 18px;color:var(--ink);line-height:2.1;}
.faq-answer p{margin:0 0 .8em;}

/* --- مقاله‌های مرتبط --- */
.cms-related{padding:56px 0;}
.cms-related h2{text-align:center;font-size:1.6rem;font-weight:800;color:var(--deep);margin-bottom:28px;}

/* --- صفحهٔ ۴۰۴ --- */
.notfound{padding:80px 0 100px;text-align:center;}
.notfound .code{font-size:5rem;font-weight:800;color:var(--rose);line-height:1;}
.notfound p{color:var(--ink-soft);margin:12px 0 26px;}

/* --- نمونه کارها (باکس‌های دسته‌بندی) --- */
.home-gallery{padding:100px 0;background:var(--ivory);}
.gallery-cats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.gallery-cat-card{position:relative;display:block;width:100%;aspect-ratio:4/5;border-radius:18px;overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .35s var(--ease),box-shadow .35s var(--ease);text-align:center;border:none;padding:0;background:#eee;}
.gallery-cat-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-md);}
.gallery-cat-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease);}
.gallery-cat-card:hover img{transform:scale(1.06);}
.gallery-cat-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;padding:20px 12px;background:linear-gradient(to top,rgba(35,20,28,.85) 0%,rgba(35,20,28,.3) 55%,rgba(35,20,28,0) 100%);}
.gallery-cat-title{color:#fff;font-weight:700;font-size:1.05rem;}
.gallery-cat-cta{color:var(--gold);font-weight:600;font-size:.82rem;}
.home-gallery-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:32px;}
@media (max-width:900px){
  .gallery-cats-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:520px){
  .gallery-cats-grid{gap:12px;}
  .gallery-cat-title{font-size:.9rem;}
  .home-gallery-actions .btn{width:100%;}
}

/* --- ویدیوهای رضایت مشتری (video-testimonials) --- */
.video-testimonials{padding:90px 0;background:var(--sage-pale);}
.video-testimonials .section-head{text-align:center;max-width:640px;margin:0 auto 36px;}
.video-testimonials .section-head h2{font-size:1.7rem;font-weight:800;color:var(--deep);margin-bottom:10px;}
.video-testimonials .section-head p{color:var(--ink-soft);}
.video-reel{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;}
.video-card{position:relative;display:block;width:100%;aspect-ratio:9/16;border:none;padding:0;border-radius:18px;overflow:hidden;background:#111;box-shadow:var(--shadow-sm);cursor:pointer;transition:transform .35s var(--ease),box-shadow .35s var(--ease);}
.video-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-md);}
.video-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
.video-card-tag{position:absolute;top:12px;inset-inline-start:12px;background:rgba(255,255,255,.92);color:var(--deep);font-size:.72rem;font-weight:700;padding:4px 10px;border-radius:999px;}
.video-card-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(to top,rgba(20,14,18,.55) 0%,rgba(20,14,18,.05) 55%);}
.video-play-btn{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--rose-deep);display:flex;align-items:center;justify-content:center;transition:transform .3s,background .3s;}
.video-play-btn svg{width:22px;height:22px;margin-inline-start:2px;}
.video-card:hover .video-play-btn{transform:scale(1.1);background:var(--white);}
@media (max-width:1000px){.video-reel{grid-template-columns:repeat(3,1fr);}}
@media (max-width:640px){.video-reel{grid-template-columns:repeat(2,1fr);gap:12px;}}

/* --- پاپ‌آپ پخش ویدیو --- */
.video-lightbox{position:fixed;inset:0;z-index:210;display:flex;align-items:center;justify-content:center;padding:30px;background:rgba(10,8,9,.94);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;}
.video-lightbox.show{opacity:1;visibility:visible;}
.video-lightbox video{max-width:100%;max-height:100%;max-width:420px;width:100%;border-radius:14px;box-shadow:var(--shadow-lg);background:#000;}
.lightbox-close-video{position:absolute;top:24px;inset-inline-end:24px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center;z-index:2;}
.lightbox-close-video:hover{background:rgba(255,255,255,.25);}
.lightbox-close-video svg{width:20px;height:20px;}

/* --- فاصله بخش ویدیوها با بخش بعدی + خط تزئینی نیلوفر (اضافه‌شده) --- */
.video-testimonials{padding-bottom:36px;}
.video-testimonials::after{content:"";display:block;width:min(460px,86%);height:34px;margin:46px auto 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Cg fill='%23d68fa3'%3E%3Cpath d='M24 2C29 9 29 18 24 26 19 18 19 9 24 2Z'/%3E%3Cpath d='M24 26C16 24 9 18 8 9 15 10 21 16 24 26Z' opacity='.85'/%3E%3Cpath d='M24 26C32 24 39 18 40 9 33 10 27 16 24 26Z' opacity='.85'/%3E%3Cpath d='M24 27C14 28 6 24 2 17 10 16 19 20 24 27Z' opacity='.6'/%3E%3Cpath d='M24 27C34 28 42 24 46 17 38 16 29 20 24 27Z' opacity='.6'/%3E%3C/g%3E%3C/svg%3E") center / 46px 31px no-repeat,
    linear-gradient(to right,rgba(214,143,163,0),rgba(214,143,163,.8)) left center / calc(50% - 36px) 2px no-repeat,
    linear-gradient(to left,rgba(214,143,163,0),rgba(214,143,163,.8)) right center / calc(50% - 36px) 2px no-repeat;}
.video-testimonials + .meso{padding-top:72px;}
@media (max-width:640px){
  .video-testimonials{padding:56px 0 24px;}
  .video-testimonials::after{margin-top:32px;height:30px;}
  .video-testimonials + .meso{padding-top:44px;}
}

/* --- ویدیوهای رضایت: اسلایدر افقی در موبایل (اضافه‌شده) --- */
.video-reel-ui{display:none;}
@media (max-width:640px){
  .video-reel{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    margin-inline:-18px;padding:6px 18px 14px;scroll-padding-inline:18px;scrollbar-width:none;overscroll-behavior-x:contain;}
  .video-reel::-webkit-scrollbar{display:none;}
  .video-reel .video-card{flex:0 0 60%;width:60%;scroll-snap-align:start;}
  .video-reel-ui{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:6px;}
  .video-reel-hint{display:flex;align-items:center;gap:8px;font-size:.82rem;font-weight:600;color:var(--rose-deep);transition:opacity .5s;}
  .video-reel-hint svg{width:22px;height:22px;animation:reelSwipe 1.6s ease-in-out infinite;}
  .video-reel-ui.is-touched .video-reel-hint{opacity:0;pointer-events:none;height:0;overflow:hidden;}
  .video-reel-dots{display:flex;gap:7px;}
  .video-reel-dots button{width:8px;height:8px;padding:0;border:none;border-radius:99px;background:rgba(214,143,163,.35);transition:width .3s,background .3s;}
  .video-reel-dots button.active{width:24px;background:var(--rose-deep);}
}
@keyframes reelSwipe{0%,100%{transform:translateX(0)}50%{transform:translateX(-8px)}}
@media (prefers-reduced-motion:reduce){.video-reel-hint svg{animation:none;}}


/* --- دسترس‌پذیری: کنتراست رنگ و هدف لمسی (اضافه‌شده) --- */
:root{--ink-soft:#7a5d6f;}
.service-featured .badge{color:#4e3141;}
.service-featured p,.why-us .body-text{color:#fff;}
.service-featured.variant-rose{background:#b0586f;}
.service-featured.variant-rose .service-featured-visual{background:radial-gradient(circle at 55% 45%,#d98ea1,#b0586f);}
.service-featured.variant-sage{background:#7a5b93;}
.service-featured.variant-sage .service-featured-visual{background:radial-gradient(circle at 55% 45%,#a98bc2,#7a5b93);}
.footer-brand p,.footer-col a,.footer-contact li,.footer-bottom{color:#fff;}
.footer-col a:hover{color:var(--gold);}
.newsletter-form button{color:#4e3141;}
@media (max-width:640px){
  .video-reel-dots{gap:0;}
  .video-reel-dots button{position:relative;width:28px;height:28px;background:none;}
  .video-reel-dots button::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:99px;background:rgba(176,88,111,.4);transition:width .3s,background .3s;}
  .video-reel-dots button.active{width:28px;background:none;}
  .video-reel-dots button.active::before{width:24px;background:#b0586f;}
}
