/*
Theme Name: Samira Kiani
Theme URI: https://example.com/samira-kiani
Author: Dr. Samira Kiani
Author URI: https://example.com
Description: قالب وردپرس مینیمال و مدرن برای وب‌سایت مطب روان‌پزشکی دکتر سمیرا کیانی. کاملاً راست‌چین، ریسپانسیو و قابل شخصی‌سازی از بخش «نمایش ← سفارشی‌سازی». A minimal, modern, RTL-first WordPress theme for a psychiatry practice.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: samira-kiani
Tags: rtl-language-support, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready, blog, editor-style
*/

/* ==========================================================================
   0. توکن‌های طراحی — Design tokens
   ========================================================================== */
:root{
  /* رنگ‌ها */
  --brand:#0e7c74;
  --brand-strong:#0b665f;
  --brand-bright:#17a98c;
  --brand-soft:#e7f4ef;
  --brand-softer:#f3faf7;
  --brand-line:#cfe6dc;

  --forest:#0b1c16;
  --forest-2:#132a21;

  --ink:#0e1f19;
  --ink-2:#3d5148;
  --ink-3:#6f8279;
  --ink-4:#9aaaa2;

  --paper:#ffffff;
  --surface:#f7faf8;
  --line:#e6efea;
  --line-2:#d7e6de;

  --star:#dfa03a;
  --alert:#e05252;

  /* تایپوگرافی */
  --font:"Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --fs-display:clamp(2.05rem, 1.35rem + 2.9vw, 3.55rem);
  --fs-h2:clamp(1.5rem, 1.18rem + 1.45vw, 2.3rem);
  --fs-h3:clamp(1.05rem, 1rem + .32vw, 1.28rem);
  --fs-lead:clamp(1rem, .95rem + .28vw, 1.16rem);
  --fs-body:clamp(.94rem, .92rem + .12vw, 1rem);
  --fs-sm:clamp(.82rem, .8rem + .1vw, .89rem);
  --fs-xs:.78rem;

  /* فاصله‌گذاری */
  --section-y:clamp(3.4rem, 2.4rem + 4vw, 6.75rem);
  --gap-xl:clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --gap-lg:clamp(1.4rem, 1.15rem + 1vw, 2.25rem);
  --gap-md:clamp(1rem, .9rem + .4vw, 1.4rem);
  --gap-sm:.75rem;

  /* شکل و سایه */
  --r-xs:10px;
  --r-sm:14px;
  --r-md:20px;
  --r-lg:26px;
  --r-xl:34px;
  --r-pill:999px;
  --shadow-xs:0 1px 2px rgba(14,31,25,.05);
  --shadow-sm:0 1px 2px rgba(14,31,25,.04), 0 10px 26px -20px rgba(14,31,25,.4);
  --shadow-md:0 2px 4px rgba(14,31,25,.03), 0 22px 45px -28px rgba(14,31,25,.42);
  --shadow-lg:0 40px 80px -45px rgba(11,28,22,.55);

  --container:1180px;
  --header-h:72px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   1. ریست پایه — Base reset
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; scroll-padding-top:calc(var(--header-h) + 12px); }
body{
  margin:0;
  font-family:var(--font);
  font-size:var(--fs-body);
  line-height:1.9;
  color:var(--ink-2);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
h1,h2,h3,h4,p,figure,blockquote{ margin:0; }
ul,ol{ margin:0; padding:0; list-style:none; }
img,svg,video,iframe{ display:block; max-width:100%; }
img{ height:auto; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
input,textarea,select{ font:inherit; color:inherit; }
:focus-visible{ outline:2px solid var(--brand-bright); outline-offset:3px; border-radius:6px; }
::selection{ background:var(--brand-soft); color:var(--ink); }

/* اعداد و شماره‌ها: ضخیم، خوانا و با فاصله یکنواخت */
.num,.phone{
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
  font-weight:700;
  letter-spacing:.02em;
}
.phone{ unicode-bidi:plaintext; }

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

/* ==========================================================================
   2. چیدمان مشترک — Layout primitives
   ========================================================================== */
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:clamp(1.15rem,.75rem + 1.9vw,2rem);
}
.section{ padding-block:var(--section-y); }
.section--soft{ background:var(--surface); }

.section-head{ max-width:38rem; margin-bottom:var(--gap-lg); }
.section-head--center{ margin-inline:auto; text-align:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:var(--fs-xs); font-weight:700; letter-spacing:.04em;
  color:var(--brand); margin-bottom:.7rem;
}
.eyebrow::before{
  content:""; width:18px; height:2px; border-radius:2px;
  background:var(--brand-bright); flex-shrink:0;
}
.section-head--center .eyebrow{ justify-content:center; }
.section-title{
  font-size:var(--fs-h2); font-weight:800; color:var(--ink);
  line-height:1.35; letter-spacing:-.015em;
}
.section-sub{ margin-top:.7rem; color:var(--ink-3); font-size:var(--fs-body); }

.section-head-row{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:var(--gap-md); margin-bottom:var(--gap-lg);
}
.section-head-row .section-head{ margin-bottom:0; }

/* حرکت نرم هنگام ورود به دید */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

/* ==========================================================================
   3. دکمه‌ها — Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding:.85rem 1.65rem;
  border-radius:var(--r-pill);
  font-size:var(--fs-body); font-weight:700; line-height:1.4;
  border:1px solid transparent;
  transition:background .2s var(--ease), color .2s var(--ease),
             border-color .2s var(--ease), transform .18s var(--ease), box-shadow .25s var(--ease);
  white-space:nowrap;
}
.btn svg{ width:1.05em; height:1.05em; flex-shrink:0; }
.btn:active{ transform:translateY(1px) scale(.99); }
.btn--primary{
  background:var(--brand); color:#fff;
  box-shadow:0 10px 24px -14px rgba(14,124,116,.85);
}
.btn--primary:hover{ background:var(--brand-strong); box-shadow:0 16px 30px -14px rgba(14,124,116,.9); transform:translateY(-2px); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line-2); }
.btn--ghost:hover{ border-color:var(--brand); color:var(--brand); background:var(--brand-softer); transform:translateY(-2px); }
.btn--soft{ background:var(--brand-soft); color:var(--brand-strong); }
.btn--soft:hover{ background:var(--brand-line); transform:translateY(-2px); }
.btn--dark{ background:rgba(255,255,255,.07); color:#fff; border-color:rgba(255,255,255,.18); }
.btn--dark:hover{ background:rgba(255,255,255,.14); }
.btn--sm{ padding:.6rem 1.15rem; font-size:var(--fs-sm); }
.btn--block{ width:100%; }

.link-arrow{
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:var(--fs-sm); font-weight:700; color:var(--brand);
}
.link-arrow svg{ width:1.05em; height:1.05em; transition:transform .2s var(--ease); }
.link-arrow:hover svg{ transform:translateX(-4px); }

.skip-link{
  position:absolute; inset-inline-start:1rem; top:-70px; z-index:200;
  background:#fff; color:var(--ink); font-weight:700;
  padding:.7rem 1.2rem; border-radius:var(--r-xs); box-shadow:var(--shadow-md);
  transition:top .2s var(--ease);
}
.skip-link:focus{ top:1rem; }
.screen-reader-text{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); clip-path:inset(50%); white-space:nowrap;
}
.screen-reader-text:focus{
  position:static !important; width:auto; height:auto; overflow:visible;
  clip:auto; clip-path:none; white-space:normal;
}

/* ==========================================================================
   4. هدر و ناوبری — Header & navigation
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:60;
  height:var(--header-h);
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(16px);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid transparent;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck{
  border-bottom-color:var(--line);
  box-shadow:0 10px 30px -28px rgba(14,31,25,.9);
}
.header-inner{ height:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem; }

.brand{ display:flex; align-items:center; gap:.6rem; flex-shrink:0; }
.brand img{ width:36px; height:36px; object-fit:contain; }
.brand-text{ display:flex; flex-direction:column; line-height:1.3; }
.brand-name{ font-size:1rem; font-weight:800; color:var(--ink); letter-spacing:-.01em; }
.brand-role{ font-size:.68rem; font-weight:600; color:var(--ink-4); }

.primary-nav{ display:none; }
.primary-nav ul{ display:flex; align-items:center; gap:clamp(.9rem,.5rem + 1.1vw,1.9rem); }
.primary-nav a{
  position:relative; display:block; padding-block:.45rem;
  font-size:.95rem; font-weight:600; color:var(--ink-3);
  transition:color .18s var(--ease);
}
.primary-nav a::after{
  content:""; position:absolute; bottom:-1px; inset-inline-start:50%;
  width:16px; height:2px; border-radius:2px; background:var(--brand-bright);
  transform:translateX(50%) scaleX(0); transform-origin:center;
  transition:transform .22s var(--ease);
}
.primary-nav a:hover{ color:var(--ink); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after,
.primary-nav a.is-active::after{ transform:translateX(50%) scaleX(1); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a.is-active{ color:var(--ink); }

.header-actions{ display:flex; align-items:center; gap:.6rem; }
.header-cta{ display:none; }

.nav-toggle{
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  width:42px; height:42px; border-radius:var(--r-sm);
  background:var(--brand-softer); border:1px solid var(--line);
  transition:background .2s var(--ease);
}
.nav-toggle:hover{ background:var(--brand-soft); }
.nav-toggle span{
  width:18px; height:2px; border-radius:2px; background:var(--ink);
  transition:transform .25s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* کشوی منوی موبایل */
.nav-scrim{
  position:fixed; inset:0; z-index:70;
  background:rgba(11,28,22,.5); backdrop-filter:blur(3px);
  opacity:0; visibility:hidden; transition:opacity .28s var(--ease), visibility .28s var(--ease);
}
.nav-scrim.is-open{ opacity:1; visibility:visible; }
.nav-drawer{
  /* از خصوصیات فیزیکی استفاده می‌شود چون transform جهت‌آگاه نیست */
  position:fixed; top:0; bottom:0; right:0; left:auto; z-index:80;
  width:min(84vw,340px); background:#fff;
  padding:1.25rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom));
  display:flex; flex-direction:column; gap:1.25rem;
  transform:translateX(105%);
  visibility:hidden;
  transition:transform .32s var(--ease), visibility .32s var(--ease);
  box-shadow:var(--shadow-lg);
  overflow-y:auto;
}
html[dir="ltr"] .nav-drawer{ right:auto; left:0; transform:translateX(-105%); }
.nav-drawer.is-open{ transform:translateX(0); visibility:visible; }
.nav-drawer-top{ display:flex; align-items:center; justify-content:space-between; }
.nav-drawer-close{
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line); background:var(--brand-softer);
  display:flex; align-items:center; justify-content:center; color:var(--ink);
}
.nav-drawer-close svg{ width:17px; height:17px; }
.nav-drawer ul{ display:flex; flex-direction:column; }
.nav-drawer li + li{ border-top:1px solid var(--line); }
.nav-drawer a{
  display:flex; align-items:center; justify-content:space-between;
  padding:.9rem .25rem; font-size:1rem; font-weight:700; color:var(--ink);
}
.nav-drawer a::after{
  content:""; width:7px; height:7px; opacity:.55;
  border-inline-start:2px solid currentColor; border-block-end:2px solid currentColor;
  transform:rotate(45deg);
}
.nav-drawer .current-menu-item > a,
.nav-drawer a.is-active{ color:var(--brand); }
.nav-drawer-foot{ margin-top:auto; display:flex; flex-direction:column; gap:.7rem; }
.nav-drawer-phone{
  display:flex; align-items:center; justify-content:center; gap:.45rem;
  font-size:var(--fs-sm); color:var(--ink-3);
}
.nav-drawer-phone svg{ width:15px; height:15px; }

/* ==========================================================================
   5. بخش قهرمان — Hero
   ========================================================================== */
.hero{
  position:relative; overflow:clip;
  padding-block:clamp(2.5rem,1.6rem + 3.4vw,4.75rem) var(--section-y);
}
.hero::before{
  content:""; position:absolute; z-index:0; pointer-events:none;
  inset-inline-end:-14%; top:-32%;
  width:min(78vw,760px); aspect-ratio:1;
  background:radial-gradient(circle at center, var(--brand-soft) 0%, rgba(231,244,239,0) 68%);
}
.hero-inner{ position:relative; z-index:1; display:grid; gap:var(--gap-xl); align-items:center; }

.hero-media{ order:1; }
.hero-figure{ position:relative; width:min(100%,420px); margin-inline:auto; }
.hero-figure::before{
  content:""; position:absolute; z-index:0;
  inset-block:6% -4%; inset-inline:-5% 12%;
  border:1px solid var(--brand-line); border-radius:var(--r-xl);
}
.hero-figure img{
  position:relative; z-index:1;
  width:100%; aspect-ratio:4/5; object-fit:cover; object-position:top center;
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-md);
}
.hero-card{
  position:absolute; z-index:2; bottom:5%; inset-inline-start:-4%;
  display:flex; align-items:center; gap:.7rem;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md);
  padding:.7rem .95rem; box-shadow:var(--shadow-sm);
}
.hero-card .icon{
  width:36px; height:36px; border-radius:11px; flex-shrink:0;
  background:var(--brand-soft); color:var(--brand);
  display:flex; align-items:center; justify-content:center;
}
.hero-card .icon svg{ width:17px; height:17px; }
.hero-card small{ display:block; font-size:.7rem; color:var(--ink-4); line-height:1.6; }
.hero-card .phone{ display:block; font-size:1.02rem; color:var(--ink); line-height:1.5; }

.hero-content{ order:2; text-align:center; }
.hero-chip{
  display:inline-flex; align-items:center; gap:.45rem;
  background:var(--brand-soft); color:var(--brand-strong);
  font-size:var(--fs-xs); font-weight:700;
  padding:.4rem .9rem; border-radius:var(--r-pill);
}
.hero-chip .dot{
  width:7px; height:7px; border-radius:50%; background:var(--brand-bright);
  box-shadow:0 0 0 3px rgba(23,169,140,.18);
}
.hero-title{
  margin-top:var(--gap-md);
  font-size:var(--fs-display); font-weight:800; color:var(--ink);
  line-height:1.22; letter-spacing:-.03em;
}
.hero-title em{ font-style:normal; color:var(--brand); }
.hero-subtitle{
  margin-top:.9rem; font-size:var(--fs-lead); font-weight:700; color:var(--ink);
}
.hero-desc{
  margin-top:.65rem; color:var(--ink-3); max-width:44ch; margin-inline:auto;
}
.hero-actions{ margin-top:var(--gap-lg); display:flex; flex-wrap:wrap; gap:.75rem; justify-content:center; }

.hero-stats{
  margin-top:var(--gap-lg); padding-top:var(--gap-md);
  border-top:1px solid var(--line);
  display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem;
}
.hero-stats li{ text-align:center; }
.hero-stats b{ display:block; font-size:clamp(.92rem, .84rem + .4vw, 1.15rem); font-weight:800; color:var(--ink); line-height:1.6; }
.hero-stats span{ display:block; font-size:var(--fs-xs); color:var(--ink-4); }

/* ==========================================================================
   6. خدمات — Services
   ========================================================================== */
.services-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap-md); }
.service-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md);
  padding:clamp(1.5rem,1.3rem + .7vw,2rem);
  display:flex; flex-direction:column;
  transition:border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover{ border-color:var(--brand-line); transform:translateY(-4px); box-shadow:var(--shadow-sm); }
.service-icon{
  width:52px; height:52px; border-radius:16px; margin-bottom:var(--gap-md);
  background:var(--brand-soft); color:var(--brand);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s var(--ease), color .25s var(--ease);
}
.service-card:hover .service-icon{ background:var(--brand); color:#fff; }
.service-icon svg{ width:26px; height:26px; }
.service-card h3{ font-size:var(--fs-h3); font-weight:800; color:var(--ink); line-height:1.6; }
.service-card p{ margin-top:.55rem; color:var(--ink-3); font-size:var(--fs-sm); line-height:1.95; flex:1; }
.service-card .link-arrow{ margin-top:1.1rem; align-self:flex-start; }

/* ==========================================================================
   7. آموزش و مقالات — Education
   ========================================================================== */
.education-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap-xl); }
.edu-col{ display:flex; flex-direction:column; }
.edu-col-title{
  font-size:1rem; font-weight:800; color:var(--ink); margin-bottom:.85rem;
  display:flex; align-items:center; gap:.5rem;
}
.edu-col-title::before{
  content:""; width:6px; height:6px; border-radius:50%; background:var(--brand-bright);
}

.video-frame{
  position:relative; width:100%; aspect-ratio:16/9; min-height:210px;
  border-radius:var(--r-lg); overflow:hidden; background:var(--forest);
  box-shadow:var(--shadow-sm);
}
.video-frame iframe,
.video-frame video{ position:absolute; inset:0; width:100%; height:100%; min-height:210px; border:0; object-fit:cover; background:#000; }
.video-poster{
  position:absolute; inset:0; width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.video-poster img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:top center;
  transition:transform .6s var(--ease);
}
.video-poster::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(11,28,22,.72), rgba(11,28,22,.22));
}
.video-poster:hover img{ transform:scale(1.04); }
.play-circle{
  position:relative; z-index:1;
  width:66px; height:66px; border-radius:50%;
  background:rgba(255,255,255,.95); color:var(--brand);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 34px -12px rgba(0,0,0,.55);
  transition:transform .25s var(--ease);
}
.play-circle svg{ width:22px; height:22px; margin-inline-start:2px; }
.video-poster:hover .play-circle{ transform:scale(1.09); }
.video-caption{
  margin-top:.9rem; font-size:var(--fs-sm); color:var(--ink-3);
}
.edu-col .btn{ margin-top:var(--gap-md); align-self:flex-start; }

.article-list{
  border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; background:#fff;
}
.article-row{
  display:flex; align-items:center; gap:1rem;
  padding:1.05rem 1.15rem;
  transition:background .2s var(--ease);
}
.article-row + .article-row{ border-top:1px solid var(--line); }
.article-row:hover{ background:var(--brand-softer); }
.article-icon{
  flex-shrink:0; width:44px; height:44px; border-radius:13px;
  background:var(--brand-soft); color:var(--brand);
  display:flex; align-items:center; justify-content:center;
}
.article-icon svg{ width:21px; height:21px; }
.article-body{ flex:1; min-width:0; }
.article-body h3{ font-size:.98rem; font-weight:700; color:var(--ink); line-height:1.7; }
.article-body p{
  margin-top:.15rem; font-size:var(--fs-sm); color:var(--ink-4); line-height:1.75;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.article-chev{ flex-shrink:0; color:var(--ink-4); transition:transform .2s var(--ease), color .2s var(--ease); }
.article-chev svg{ width:17px; height:17px; }
.article-row:hover .article-chev{ color:var(--brand); transform:translateX(-4px); }

/* ==========================================================================
   8. نظرات بیماران — Testimonials
   ========================================================================== */
.carousel-nav{ display:flex; gap:.5rem; flex-shrink:0; }
.carousel-btn{
  width:42px; height:42px; border-radius:50%;
  background:#fff; border:1px solid var(--line); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.carousel-btn svg{ width:16px; height:16px; }
.carousel-btn:hover{ background:var(--brand); border-color:var(--brand); color:#fff; }

.testimonial-track{
  display:flex; gap:var(--gap-md);
  overflow-x:auto; scroll-snap-type:x mandatory;
  padding-block:.25rem .5rem; margin-inline:calc(-1 * clamp(1.15rem,.75rem + 1.9vw,2rem));
  padding-inline:clamp(1.15rem,.75rem + 1.9vw,2rem);
  scrollbar-width:none; -ms-overflow-style:none;
}
.testimonial-track::-webkit-scrollbar{ display:none; }
.testimonial-card{
  scroll-snap-align:start; flex:0 0 86%;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md);
  padding:1.35rem 1.4rem;
  display:flex; flex-direction:column; gap:.8rem;
}
.stars{ color:var(--star); font-size:.9rem; letter-spacing:2px; line-height:1; }
.testimonial-text{ color:var(--ink-2); font-size:var(--fs-sm); line-height:2; flex:1; }
.testimonial-foot{
  display:flex; align-items:center; gap:.65rem;
  padding-top:.85rem; border-top:1px solid var(--line);
}
.avatar{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:.78rem; font-weight:800; color:var(--brand-strong);
  background:var(--brand-soft);
}
.testimonial-name{ display:block; font-size:.9rem; font-weight:700; color:var(--ink); line-height:1.5; }
.testimonial-role{ display:block; font-size:var(--fs-xs); color:var(--ink-4); line-height:1.5; }

.carousel-dots{ display:flex; justify-content:center; gap:.4rem; margin-top:var(--gap-md); }
.carousel-dots button{
  width:7px; height:7px; border-radius:var(--r-pill); background:var(--line-2);
  transition:width .25s var(--ease), background .25s var(--ease);
}
.carousel-dots button.is-active{ width:22px; background:var(--brand); }

/* ==========================================================================
   9. فوتر و تماس — Footer & contact
   ========================================================================== */
.site-footer{ background:var(--forest); color:#e8f2ed; }
.footer-top{ padding-block:var(--section-y) var(--gap-xl); }
.footer-top .eyebrow{ color:var(--brand-bright); }
.footer-top .eyebrow::before{ background:var(--brand-bright); }
.footer-top .section-title{ color:#fff; }
.footer-top .section-sub{ color:rgba(232,242,237,.6); }

.contact-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap-lg); align-items:start; }
.contact-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  border-radius:var(--r-lg);
  padding:clamp(1.4rem,1.2rem + .8vw,2rem);
}
.contact-card h3{
  font-size:1.05rem; font-weight:800; color:#fff;
  display:flex; align-items:center; gap:.55rem;
}
.contact-card h3::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:var(--brand-bright); box-shadow:0 0 0 4px rgba(23,169,140,.16);
}
.contact-list{ margin-top:1.25rem; display:flex; flex-direction:column; gap:1rem; }
.contact-row{ display:flex; gap:.85rem; align-items:flex-start; }
.contact-row .row-icon{
  flex-shrink:0; width:38px; height:38px; border-radius:12px;
  background:rgba(255,255,255,.07); color:var(--brand-bright);
  display:flex; align-items:center; justify-content:center;
}
.contact-row .row-icon svg{ width:18px; height:18px; }
.row-label{ font-size:var(--fs-xs); color:rgba(232,242,237,.5); line-height:1.7; }
.row-value{ font-size:var(--fs-sm); color:#e8f2ed; line-height:1.85; }
a.row-value:hover{ color:var(--brand-bright); }
.row-value.phone{ font-size:1.15rem; color:#fff; }

.contact-alert{
  margin-top:1.35rem; display:flex; gap:.7rem; align-items:flex-start;
  background:rgba(224,82,82,.12); border:1px solid rgba(224,82,82,.32);
  border-radius:var(--r-sm); padding:.85rem 1rem;
}
.contact-alert svg{ width:19px; height:19px; flex-shrink:0; color:#ff9a9a; margin-top:.28rem; }
.contact-alert p{ font-size:var(--fs-sm); color:#ffd4d4; line-height:1.85; }
.contact-alert strong{ color:#fff; }

.map-col{ display:flex; flex-direction:column; gap:var(--gap-md); }
.map-frame{
  width:100%; aspect-ratio:4/3; min-height:230px;
  border-radius:var(--r-lg); overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
}
.map-frame iframe{ width:100%; height:100%; min-height:230px; border:0; filter:grayscale(.2) contrast(1.05); }
.route-list{ display:grid; grid-template-columns:1fr; gap:.6rem; }
.route-btn{
  display:flex; align-items:center; gap:.8rem;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
  border-radius:var(--r-sm); padding:.8rem 1rem;
  transition:background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.route-btn:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2); transform:translateY(-2px); }
.route-icon{
  flex-shrink:0; width:34px; height:34px; border-radius:10px; color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.route-icon svg{ width:17px; height:17px; }
.route-btn--google .route-icon{ background:#1a73e8; }
.route-btn--balad .route-icon{ background:#ff7a00; }
.route-btn--neshan .route-icon{ background:#00a99d; }
.route-text{ flex:1; min-width:0; }
.route-text strong{ display:block; font-size:.9rem; font-weight:700; color:#fff; line-height:1.6; }
.route-text span{ display:block; font-size:var(--fs-xs); color:rgba(232,242,237,.45); line-height:1.5; }
.route-btn > svg:last-child{ width:16px; height:16px; color:rgba(232,242,237,.4); flex-shrink:0; }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-block:1.4rem;
  display:flex; flex-direction:column; align-items:center; gap:1rem;
  text-align:center; font-size:var(--fs-xs); color:rgba(232,242,237,.5);
}
.footer-brand{ display:flex; align-items:center; gap:.55rem; color:#fff; font-weight:700; font-size:.92rem; }
.footer-brand img{ width:30px; height:30px; object-fit:contain; }
.social-list{ display:flex; gap:.5rem; }
.social-list a{
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center; color:#fff;
  transition:background .2s var(--ease), border-color .2s var(--ease);
}
.social-list a:hover{ background:var(--brand); border-color:var(--brand); }
.social-list svg{ width:16px; height:16px; }

/* ==========================================================================
   10. نوار چسبان موبایل — Sticky mobile CTA
   ========================================================================== */
.sticky-cta{
  display:none;
  position:fixed; inset-inline:0; bottom:0; z-index:55;
  padding:.7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  gap:.55rem;
}
.sticky-cta .btn{ flex:1; }
.sticky-cta .icon-btn{
  flex-shrink:0; width:46px; height:46px; border-radius:var(--r-pill);
  border:1px solid var(--line-2); background:#fff; color:var(--ink);
  display:flex; align-items:center; justify-content:center;
}
.sticky-cta .icon-btn svg{ width:19px; height:19px; }

/* ==========================================================================
   11. لایت‌باکس ویدیو — Video lightbox
   ========================================================================== */
.modal{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center; padding:1.1rem;
  background:rgba(8,20,15,.82); backdrop-filter:blur(6px);
  opacity:0; visibility:hidden;
  transition:opacity .25s var(--ease), visibility .25s var(--ease);
}
.modal.is-open{ opacity:1; visibility:visible; }
.modal-box{
  position:relative; width:min(920px,100%);
  background:#000; border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-lg);
  transform:scale(.95) translateY(10px);
  transition:transform .3s var(--ease);
}
.modal.is-open .modal-box{ transform:none; }
.modal-close{
  position:absolute; z-index:2; top:.7rem; inset-inline-start:.7rem;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.95); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
}
.modal-close svg{ width:17px; height:17px; }
.modal-video{ position:relative; width:100%; aspect-ratio:16/9; min-height:200px; background:#0b0b0b; }
.modal-video iframe,.modal-video video{ position:absolute; inset:0; width:100%; height:100%; min-height:200px; border:0; }
.modal-empty{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:.6rem; padding:1.5rem;
  color:rgba(255,255,255,.72); font-size:var(--fs-sm); text-align:center;
}
.modal-empty svg{ width:32px; height:32px; opacity:.5; }
body.is-locked{ overflow:hidden; }

/* ==========================================================================
   12. صفحات داخلی، آرشیو و محتوای وردپرس — Inner pages & WP content
   ========================================================================== */
.page-hero{
  background:var(--surface); border-bottom:1px solid var(--line);
  padding-block:clamp(2.5rem,2rem + 2.5vw,4.5rem);
  text-align:center;
}
.page-hero .page-title{
  font-size:var(--fs-h2); font-weight:800; color:var(--ink); line-height:1.4; letter-spacing:-.015em;
}
.page-hero .page-sub{ margin-top:.6rem; color:var(--ink-3); font-size:var(--fs-sm); }
.breadcrumb{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.4rem;
  font-size:var(--fs-xs); color:var(--ink-4); margin-bottom:.8rem;
}
.breadcrumb a:hover{ color:var(--brand); }
.breadcrumb span{ opacity:.5; }

.content-area{ padding-block:var(--section-y); }
.content-narrow{ max-width:44rem; margin-inline:auto; }

.entry-content{ color:var(--ink-2); font-size:1.02rem; line-height:2.1; }
.entry-content > * + *{ margin-top:1.15rem; }
.entry-content h1,.entry-content h2,.entry-content h3,
.entry-content h4,.entry-content h5,.entry-content h6{
  color:var(--ink); font-weight:800; line-height:1.5; letter-spacing:-.01em;
  margin-top:2.2rem; margin-bottom:.2rem;
}
.entry-content h2{ font-size:1.5rem; }
.entry-content h3{ font-size:1.22rem; }
.entry-content h4{ font-size:1.08rem; }
.entry-content a{ color:var(--brand); text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.entry-content a:hover{ color:var(--brand-strong); }
.entry-content ul,.entry-content ol{ padding-inline-start:1.4rem; }
.entry-content ul li{ list-style:disc; }
.entry-content ol li{ list-style:decimal; }
.entry-content li + li{ margin-top:.4rem; }
.entry-content li::marker{ color:var(--brand-bright); }
.entry-content blockquote{
  border-inline-start:3px solid var(--brand-bright);
  background:var(--brand-softer);
  border-radius:0 var(--r-sm) var(--r-sm) 0;
  padding:1rem 1.25rem; color:var(--ink);
}
html[dir="rtl"] .entry-content blockquote{ border-radius:var(--r-sm) 0 0 var(--r-sm); }
.entry-content img,.entry-content .wp-block-image img{ border-radius:var(--r-md); }
.entry-content figure{ margin:1.6rem 0; }
.entry-content figcaption{ margin-top:.55rem; font-size:var(--fs-xs); color:var(--ink-4); text-align:center; }
.entry-content code{
  background:var(--surface); border:1px solid var(--line);
  border-radius:6px; padding:.1rem .35rem; font-size:.9em;
}
.entry-content pre{
  background:var(--forest); color:#e8f2ed; border-radius:var(--r-sm);
  padding:1.1rem 1.25rem; overflow-x:auto; direction:ltr; text-align:left;
}
.entry-content pre code{ background:none; border:0; padding:0; color:inherit; }
.entry-content table{ width:100%; border-collapse:collapse; font-size:var(--fs-sm); }
.entry-content th,.entry-content td{ border:1px solid var(--line); padding:.65rem .8rem; text-align:start; }
.entry-content th{ background:var(--surface); font-weight:700; color:var(--ink); }
.entry-content hr{ border:0; border-top:1px solid var(--line); margin:2.2rem 0; }
.alignleft{ float:left; margin:.4rem 1.4rem 1rem 0; }
.alignright{ float:right; margin:.4rem 0 1rem 1.4rem; }
.aligncenter{ margin-inline:auto; }
.wp-caption{ max-width:100%; }

.entry-meta{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.5rem 1rem;
  font-size:var(--fs-xs); color:var(--ink-4);
}
.entry-meta .sep{ opacity:.4; }
.entry-thumb{ margin-bottom:var(--gap-lg); border-radius:var(--r-lg); overflow:hidden; }
.entry-thumb img{ width:100%; aspect-ratio:16/8; object-fit:cover; }

.post-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap-md); }
.post-card{
  display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden;
  transition:border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover{ border-color:var(--brand-line); transform:translateY(-4px); box-shadow:var(--shadow-sm); }
.post-card-thumb{ display:block; overflow:hidden; background:var(--surface); }
.post-card-thumb img{ width:100%; aspect-ratio:16/9; object-fit:cover; transition:transform .5s var(--ease); }
.post-card:hover .post-card-thumb img{ transform:scale(1.05); }
.post-card-body{ padding:1.2rem 1.25rem 1.35rem; display:flex; flex-direction:column; flex:1; }
.post-card-body h2,.post-card-body h3{ font-size:1.02rem; font-weight:800; color:var(--ink); line-height:1.75; }
.post-card-body h2 a:hover,.post-card-body h3 a:hover{ color:var(--brand); }
.post-card-excerpt{ margin-top:.5rem; font-size:var(--fs-sm); color:var(--ink-3); line-height:1.95; flex:1; }
.post-card-meta{ margin-top:.9rem; font-size:var(--fs-xs); color:var(--ink-4); }

.pagination{ margin-top:var(--gap-xl); display:flex; justify-content:center; }
.pagination .nav-links{ display:flex; flex-wrap:wrap; gap:.4rem; }
.pagination .page-numbers{
  min-width:40px; height:40px; padding-inline:.6rem;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:var(--r-xs);
  font-size:var(--fs-sm); font-weight:700; color:var(--ink-2); background:#fff;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pagination .page-numbers:hover{ border-color:var(--brand); color:var(--brand); }
.pagination .page-numbers.current{ background:var(--brand); border-color:var(--brand); color:#fff; }

.search-form{ display:flex; gap:.5rem; }
.search-form input[type="search"]{
  flex:1; min-width:0;
  border:1px solid var(--line-2); border-radius:var(--r-pill);
  padding:.75rem 1.15rem; background:#fff; color:var(--ink);
}
.search-form input[type="search"]::placeholder{ color:var(--ink-4); }
.search-form input[type="search"]:focus{ outline:none; border-color:var(--brand); }

.no-results{ text-align:center; color:var(--ink-3); }
.error-404{ text-align:center; padding-block:clamp(3.5rem,3rem + 4vw,7rem); }
.error-404 .code{
  font-size:clamp(3.5rem,2.5rem + 6vw,6rem); font-weight:800; color:var(--brand-line); line-height:1;
}
.error-404 h1{ margin-top:1rem; font-size:var(--fs-h2); font-weight:800; color:var(--ink); }
.error-404 p{ margin-top:.7rem; color:var(--ink-3); }
.error-404 .btn{ margin-top:var(--gap-lg); }

.comments-area{ margin-top:var(--gap-xl); padding-top:var(--gap-lg); border-top:1px solid var(--line); }
.comments-area .comment-list{ display:flex; flex-direction:column; gap:1.25rem; }
.comments-area .comment-body{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-md); padding:1.1rem 1.25rem;
}
.comments-area .comment-meta{ font-size:var(--fs-xs); color:var(--ink-4); margin-bottom:.5rem; }
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea{
  width:100%; border:1px solid var(--line-2); border-radius:var(--r-sm);
  padding:.7rem 1rem; background:#fff; margin-top:.3rem;
}
.comments-area textarea:focus,
.comments-area input:focus{ outline:none; border-color:var(--brand); }
.comments-area .submit{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.8rem 1.7rem; border-radius:var(--r-pill);
  background:var(--brand); color:#fff; font-weight:700; border:0; cursor:pointer;
}

/* نوار مدیریت وردپرس */
.admin-bar .site-header{ top:32px; }
@media screen and (max-width:782px){ .admin-bar .site-header{ top:46px; } }

/* ==========================================================================
   13. نقاط شکست ریسپانسیو — Breakpoints
   ==========================================================================
   موبایل کوچک ≤۳۹۹ · موبایل ≤۷۶۷ · تبلت ۷۶۸–۱۰۲۳ · لپ‌تاپ ≥۱۰۲۴ · دسکتاپ ≥۱۲۸۰
   ========================================================================== */

/* موبایل ۵ تا ۶ اینچ */
@media (max-width:399px){
  .hero-actions .btn{ width:100%; }
  .hero-card{ inset-inline-start:0; bottom:3%; padding:.6rem .8rem; }
  .hero-stats b{ font-size:1.02rem; }
  .btn{ padding:.8rem 1.3rem; }
}

/* همه موبایل‌ها */
@media (max-width:767px){
  .sticky-cta{ display:flex; }
  .site-footer{ padding-bottom:78px; }
  .section-head-row{ flex-direction:column; align-items:stretch; }
  .section-head-row .carousel-nav{ display:none; }
  .testimonial-card{ flex:0 0 88%; }
  .edu-col .btn,.service-card .link-arrow{ align-self:stretch; }
  .edu-col .btn{ justify-content:center; }
}

/* تبلت ۷ تا ۱۱ اینچ */
@media (min-width:768px){
  .header-cta{ display:inline-flex; }
  .services-grid{ grid-template-columns:repeat(3,1fr); }
  .testimonial-card{ flex:0 0 calc(50% - (var(--gap-md) / 2)); }
  .post-grid{ grid-template-columns:repeat(2,1fr); }
  .route-list{ grid-template-columns:repeat(3,1fr); }
  .route-text span{ display:none; }
  .footer-bottom{ flex-direction:row; justify-content:space-between; text-align:start; }
  .hero-content{ text-align:start; }
  .hero-desc{ margin-inline:0; }
  .hero-actions{ justify-content:flex-start; }
  .hero-stats{ max-width:30rem; }
  .hero-stats li{ text-align:start; }
  .hero-stats li + li{ padding-inline-start:1rem; border-inline-start:1px solid var(--line); }
}

/* لپ‌تاپ و دسکتاپ ۱۳ تا ۱۹ اینچ */
@media (min-width:1024px){
  .primary-nav{ display:block; }
  .nav-toggle{ display:none; }

  .hero-inner{ grid-template-columns:1.02fr .98fr; }
  .hero-media{ order:2; }
  .hero-content{ order:1; }
  .hero-figure{ margin-inline-end:0; }

  .education-grid{ grid-template-columns:1fr 1fr; align-items:start; }
  .testimonial-card{ flex:0 0 calc(33.3333% - (var(--gap-md) * 2 / 3)); }
  .contact-grid{ grid-template-columns:1fr 1fr; }
  .post-grid{ grid-template-columns:repeat(3,1fr); }
  .route-list{ grid-template-columns:1fr; }
  .route-text span{ display:block; }
}

@media (min-width:1280px){
  :root{ --header-h:78px; }
  .contact-grid{ grid-template-columns:1.05fr .95fr; gap:var(--gap-xl); }
}
