/*
Theme Name: Sabapro
Theme URI: https://sabapro.ir
Author: Sabapro
Description: قالب سبک و اختصاصی ساباپرو برای صفحه‌ی فرود شبکه‌ی چندکاناله‌ی یوتیوب. سازگار کامل با ویرایشگر بلوکی وردپرس، پشتیبانی خودکار از راست‌چین (فارسی/عربی) و چپ‌چین (انگلیسی) با استفاده از ویژگی‌های منطقی CSS، بدون وابستگی به هیچ افزونه‌ی صفحه‌ساز سنگین.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: sabapro
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root{
  --sp-teal:#158e96;
  --sp-teal-dark:#0d6d75;
  --sp-deep:#083b40;
  --sp-deep-2:#0f3b40;
  --sp-ink:#0f2c2f;
  --sp-ink-2:#294044;
  --sp-text:#132b2e;
  --sp-muted:rgba(19,43,46,.65);
  --sp-muted-2:rgba(19,43,46,.62);
  --sp-line:rgba(19,43,46,.08);
  --sp-bg:#fbfdfd;
  --sp-bg-2:#f2fafa;
  --sp-yellow:#ffd633;
  --sp-yellow-2:#f7d000;
  --sp-white:#fff;
  --sp-font-latin:'Outfit', system-ui, sans-serif;
  --sp-font-fa-ar:'Vazirmatn', system-ui, sans-serif;
  --sp-font: var(--sp-font-latin);
  --sp-max:1220px;
  --sp-radius-lg:20px;
  --sp-radius-md:14px;
  --sp-radius-sm:10px;
}

html[lang^="fa"], html[lang^="ar"]{ --sp-font: var(--sp-font-fa-ar); }

*{ box-sizing:border-box; }

/* Neutralise WordPress core block default spacing so it never fights
   the spacing rules defined in this stylesheet. Anything more specific
   below (e.g. .sp-hero p) still overrides this safely. */
.wp-block-group, .wp-block-columns, .wp-block-buttons,
.wp-block-heading, h1, h2, h3, h4, h5, h6,
.wp-block-group p, .wp-block-group ul{ margin:0; padding:0; }
.wp-block-button__link{ box-shadow:none; }

body{
  margin:0;
  background:var(--sp-bg);
  color:var(--sp-text);
  font-family:var(--sp-font);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

::selection{ background:var(--sp-teal); color:#fff; }

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }

.sp-wrap{ max-width:var(--sp-max); margin:0 auto; padding-inline:28px; }

@keyframes sp-floatY{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-10px);} }

/* ==========================================================================
   1. Header
   ========================================================================== */
.sp-header{
  position:sticky; top:0; z-index:50;
  background:rgba(251,253,253,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--sp-line);
}
.sp-header__inner{
  max-width:var(--sp-max); margin:0 auto; padding:14px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.sp-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.sp-logo__mark{
  width:42px; height:42px;
  display:flex; align-items:center; justify-content:center; flex:none;
}
.sp-logo__mark img{ width:100%; height:100%; object-fit:contain; }
.sp-logo__text{ font-size:19px; font-weight:800; color:#0f2c2f; letter-spacing:-.2px; }

.sp-nav{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.sp-nav ul{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.sp-nav li{ list-style:none; margin:0; padding:0; }
.sp-nav a{ color:var(--sp-ink-2); text-decoration:none; font-size:15px; font-weight:500; transition:color .15s; }
.sp-nav a:hover{ color:var(--sp-teal); }
.sp-nav .sub-menu{ display:none; }

.sp-header__actions{ display:flex; align-items:center; gap:14px; }

.sp-lang-switch{ display:flex; align-items:center; gap:4px; background:var(--sp-bg-2); border:1px solid var(--sp-line); border-radius:99px; padding:3px; }
.sp-lang-switch__item{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px; border-radius:99px; font-size:12.5px; font-weight:700;
  color:var(--sp-ink-2); text-decoration:none; transition:background .15s, color .15s;
  line-height:0;
}
.sp-lang-switch__item img{ width:20px; height:14px; object-fit:cover; border-radius:2px; display:block; }
.sp-lang-switch__item:hover{ background:rgba(21,142,150,.08); }
.sp-lang-switch__item.is-active{ background:#fff; box-shadow:0 0 0 1.5px var(--sp-teal) inset; }
.sp-nav-toggle{
  display:none; width:38px; height:38px; border-radius:10px; border:1px solid var(--sp-line);
  background:#fff; padding:0; cursor:pointer; flex:none;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.sp-nav-toggle span{ display:block; width:18px; height:2px; background:var(--sp-ink-2); border-radius:2px; transition:transform .2s, opacity .2s; }
.sp-nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.sp-nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.sp-nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.sp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--sp-teal); color:#fff !important; padding:11px 24px; border-radius:var(--sp-radius-sm);
  font-size:14.5px; font-weight:700; text-decoration:none;
  box-shadow:0 6px 16px rgba(21,142,150,.28); border:none; cursor:pointer;
  transition:background .15s;
}
.sp-btn:hover{ background:var(--sp-teal-dark); }
.sp-btn--lg{ padding:16px 30px; font-size:16px; border-radius:12px; box-shadow:0 10px 24px rgba(21,142,150,.35); }
.sp-btn--ghost{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.22); color:#fff !important;
  padding:16px 30px; border-radius:12px; font-size:16px; font-weight:700; text-decoration:none;
}
.sp-btn--ghost:hover{ background:rgba(255,255,255,.14); }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.sp-hero{
  position:relative; overflow:hidden;
  background:radial-gradient(1100px 500px at 85% -10%,rgba(21,142,150,.35),transparent),
             linear-gradient(160deg,var(--sp-teal),var(--sp-deep));
  padding:96px 28px 150px;
}
html[dir="rtl"] .sp-hero{
  background:radial-gradient(1100px 500px at 15% -10%,rgba(21,142,150,.35),transparent),
             linear-gradient(200deg,var(--sp-teal),var(--sp-deep));
}
.sp-hero::before{
  content:""; position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,214,51,.12) 1.5px,transparent 1.5px);
  background-size:26px 26px; opacity:.5;
}
.sp-hero__blob-a{ position:absolute; width:420px; height:420px; border-radius:50%; background:var(--sp-yellow-2); opacity:.18; filter:blur(90px); top:-140px; inset-inline-start:-80px; }
.sp-hero__blob-b{ position:absolute; width:360px; height:360px; border-radius:50%; background:#5fe0d6; opacity:.22; filter:blur(100px); bottom:-160px; inset-inline-end:6%; }

.sp-hero__grid{ max-width:var(--sp-max); margin:0 auto; position:relative; display:flex; flex-wrap:wrap; gap:56px; align-items:center; }
.sp-hero__content{ flex:1 1 480px; min-width:300px; }
.sp-badge{
  display:inline-flex; align-items:center; gap:8px; background:rgba(255,214,51,.16);
  border:1px solid rgba(255,214,51,.4); color:var(--sp-yellow); padding:8px 16px; border-radius:99px;
  font-size:13.5px; font-weight:600;
}
.sp-hero h1{ margin:24px 0 0; font-size:clamp(34px,5vw,54px); line-height:1.28; font-weight:800; color:#fff; }
.sp-hero h1 mark{ background:none; color:var(--sp-yellow); }
.sp-hero p{ margin:22px 0 0; font-size:18px; line-height:1.9; color:rgba(255,255,255,.72); max-width:560px; }
.sp-hero__actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }

.sp-hero__card{
  position:relative; width:100%; max-width:420px; border-radius:24px;
  background:linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.14); padding:26px 24px 24px;
  animation:sp-floatY 6s ease-in-out infinite; box-shadow:0 30px 60px rgba(3,25,28,.35);
}
.sp-hero__aside{ flex:1 1 380px; min-width:280px; display:flex; justify-content:center; }
.sp-hero__stats{ display:flex; gap:12px; margin-top:18px; }
.sp-hero__stat{ flex:1; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:14px 16px; }
.sp-hero__stat b{ display:block; color:#fff; font-size:19px; font-weight:800; }
.sp-hero__stat span{ display:block; color:rgba(255,255,255,.6); font-size:12px; margin-bottom:4px; }

/* ==========================================================================
   3. Stat overlap bar + trust bar
   ========================================================================== */
.sp-stats-bar{ max-width:1120px; margin:-72px auto 0; position:relative; z-index:5; padding-inline:28px; }
.sp-stats-bar__inner{ background:#fff; border-radius:var(--sp-radius-lg); box-shadow:0 20px 50px rgba(19,43,46,.12); display:flex; flex-wrap:wrap; padding:32px 12px; }
.sp-stats-bar__item{ flex:1 1 200px; text-align:center; padding:12px; border-inline-end:1px solid var(--sp-line); }
.sp-stats-bar__item:last-child{ border-inline-end:none; }
.sp-stats-bar__item b{ display:block; font-size:32px; font-weight:800; color:var(--sp-deep-2); }
.sp-stats-bar__item span{ display:block; font-size:14px; color:var(--sp-muted-2); margin-top:4px; }

.sp-trust{ max-width:1000px; margin:70px auto 0; padding-inline:28px; text-align:center; }
.sp-trust__label{ font-size:12.5px; letter-spacing:.4px; color:rgba(19,43,46,.45); margin-bottom:22px; font-weight:600; }
.sp-trust__pills{ display:flex; justify-content:center; flex-wrap:wrap; gap:14px; }
.sp-trust__pills span{ padding:9px 20px; border-radius:99px; background:#fff; border:1px solid var(--sp-line); font-size:13.5px; font-weight:700; color:var(--sp-ink-2); }

/* ==========================================================================
   4. Section heading helper
   ========================================================================== */
.sp-eyebrow{ color:var(--sp-teal); font-weight:700; font-size:14.5px; letter-spacing:.3px; display:block; }
.sp-eyebrow--light{ color:var(--sp-yellow); }
.sp-section-head{ text-align:center; max-width:640px; margin:0 auto 60px; }
.sp-section-head h2{ font-size:clamp(26px,3.4vw,38px); font-weight:800; color:var(--sp-ink); margin:12px 0 0; }

/* ==========================================================================
   5. Services
   ========================================================================== */
.sp-services{ padding:80px 28px 90px; max-width:var(--sp-max); margin:0 auto; }
.sp-services__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px; }
.sp-card{ background:#fff; border:1px solid var(--sp-line); border-radius:18px; padding:32px 26px; transition:box-shadow .2s, transform .2s; }
.sp-card:hover{ box-shadow:0 16px 36px rgba(19,43,46,.1); transform:translateY(-4px); }
.sp-card__icon{ width:56px; height:56px; border-radius:14px; background:rgba(21,142,150,.1); border:1.5px solid rgba(21,142,150,.3); display:flex; align-items:center; justify-content:center; }
.sp-card h3{ font-size:18.5px; font-weight:700; color:var(--sp-ink); margin:20px 0 10px; }
.sp-card p{ font-size:14.5px; line-height:1.9; color:var(--sp-muted); margin:0; }

/* ==========================================================================
   6. Process
   ========================================================================== */
.sp-process{ padding:90px 28px; background:#fff; border-top:1px solid rgba(19,43,46,.06); border-bottom:1px solid rgba(19,43,46,.06); }
.sp-process__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:28px; max-width:var(--sp-max); margin:0 auto; }
.sp-step{ text-align:center; padding:0 14px; }
.sp-step__num{ width:64px; height:64px; border-radius:50%; background:var(--sp-deep-2); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; margin:0 auto 20px; }
.sp-step--active .sp-step__num{ background:var(--sp-teal); }
.sp-step h3{ font-size:16.5px; font-weight:700; color:var(--sp-ink); margin:0 0 8px; }
.sp-step p{ font-size:14px; color:var(--sp-muted-2); line-height:1.8; margin:0; }

/* ==========================================================================
   7. Why us
   ========================================================================== */
.sp-why{ padding:110px 28px; max-width:var(--sp-max); margin:0 auto; display:flex; flex-wrap:wrap; gap:56px; align-items:center; }
.sp-why__media{ flex:1 1 380px; min-width:280px; }
.sp-why__media-frame{ aspect-ratio:1/1; border-radius:22px; background:linear-gradient(160deg,#eefbfb,#dcf1f1); border:1px solid var(--sp-line); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.sp-why__media-frame img,.sp-why__media-frame svg{ width:88%; height:88%; }
.sp-why__content{ flex:1 1 420px; min-width:300px; }
.sp-why__content h2{ font-size:clamp(26px,3.4vw,36px); font-weight:800; color:var(--sp-ink); margin:12px 0 26px; }
.sp-why__list{ display:flex; flex-direction:column; gap:18px; list-style:none; margin:0; padding:0; }
.sp-why__list li{ display:flex; gap:14px; align-items:flex-start; }
.sp-why__check{ width:26px; height:26px; border-radius:50%; background:var(--sp-teal); flex:none; display:flex; align-items:center; justify-content:center; margin-top:2px; }
.sp-why__list p{ margin:0; font-size:15.5px; line-height:1.85; color:var(--sp-ink-2); }

/* ==========================================================================
   8. Testimonials
   ========================================================================== */
.sp-testimonials{ padding:100px 28px; background:linear-gradient(160deg,var(--sp-teal),var(--sp-deep)); }
.sp-testimonials .sp-section-head h2{ color:#fff; }
.sp-testimonials__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; max-width:var(--sp-max); margin:0 auto; }
.sp-testimonial{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:18px; padding:30px; }
.sp-testimonial p{ color:rgba(255,255,255,.8); font-size:15px; line-height:1.9; margin:16px 0 20px; }
.sp-testimonial__author{ display:flex; align-items:center; gap:10px; }
.sp-testimonial__avatar{ width:38px; height:38px; border-radius:50%; font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; flex:none; }
.sp-testimonial__name{ font-size:14px; font-weight:700; color:#fff; }
.sp-testimonial__role{ font-size:12.5px; color:rgba(255,255,255,.5); }

/* ==========================================================================
   9. Contact
   ========================================================================== */
.sp-contact{ padding:110px 28px; max-width:var(--sp-max); margin:0 auto; display:flex; flex-wrap:wrap; gap:56px; }
.sp-contact__info{ flex:1 1 380px; min-width:280px; }
.sp-contact__info h2{ font-size:clamp(26px,3.4vw,38px); font-weight:800; color:var(--sp-ink); margin:12px 0 20px; }
.sp-contact__info p{ font-size:16px; line-height:1.9; color:var(--sp-muted); max-width:460px; }
.sp-contact__rows{ display:flex; flex-direction:column; gap:14px; margin-top:32px; }
.sp-contact__row{ display:flex; align-items:center; gap:12px; color:var(--sp-ink-2); font-size:15px; }
.sp-contact__row-icon{ width:38px; height:38px; border-radius:10px; background:rgba(21,142,150,.1); display:flex; align-items:center; justify-content:center; flex:none; }
.sp-contact__form-wrap{ flex:1 1 420px; min-width:300px; }
.sp-contact__form{ background:#fff; border:1px solid var(--sp-line); border-radius:var(--sp-radius-lg); padding:36px; box-shadow:0 20px 50px rgba(19,43,46,.08); display:flex; flex-direction:column; gap:16px; }
.sp-field label{ font-size:13.5px; font-weight:600; color:var(--sp-ink-2); display:block; margin-bottom:6px; }
.sp-field input, .sp-field textarea{
  width:100%; box-sizing:border-box; padding:13px 16px; border-radius:var(--sp-radius-sm);
  border:1px solid rgba(19,43,46,.15); font-family:inherit; font-size:14.5px; background:var(--sp-bg-2);
}
.sp-contact__form button{ margin-top:6px; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.sp-footer{ background:var(--sp-deep); padding:64px 28px 28px; }
.sp-footer__grid{ max-width:var(--sp-max); margin:0 auto; display:flex; flex-wrap:wrap; gap:48px; justify-content:space-between; }
.sp-footer__brand{ flex:1 1 260px; min-width:220px; }
.sp-footer__brand p{ font-size:14px; line-height:1.9; color:rgba(255,255,255,.5); margin:16px 0 0; max-width:280px; }
.sp-footer h4{ color:#fff; font-size:14.5px; font-weight:700; margin:0 0 16px; }
.sp-footer__col{ flex:1 1 160px; min-width:150px; }
.sp-footer__links{ display:flex; flex-direction:column; gap:10px; list-style:none; margin:0; padding:0; }
.sp-footer__links ul{ display:flex; flex-direction:column; gap:10px; list-style:none; margin:0; padding:0; }
.sp-footer__links li{ list-style:none; margin:0; padding:0; }
.sp-footer__links a{ color:rgba(255,255,255,.55); text-decoration:none; font-size:14px; }
.sp-footer__links a:hover{ color:var(--sp-yellow); }
.sp-footer__links .sub-menu{ display:none; }
.sp-footer__contact span{ display:block; color:rgba(255,255,255,.55); font-size:14px; }
.sp-footer__contact span + span{ margin-top:10px; }
.sp-social{ display:flex; gap:10px; }
.sp-social a{ width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; transition:background .15s; }
.sp-social a:hover{ background:var(--sp-teal); }
.sp-footer__bottom{ max-width:var(--sp-max); margin:48px auto 0; padding-top:24px; border-top:1px solid rgba(255,255,255,.08); text-align:center; }
.sp-footer__bottom span{ color:rgba(255,255,255,.45); font-size:13px; }

/* ==========================================================================
   10b. Achievements
   ========================================================================== */
.sp-achieve{ padding:80px 28px; max-width:var(--sp-max); margin:0 auto; }
.sp-achieve__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:24px; text-align:center; }
.sp-achieve__item{ padding:20px; }
.sp-achieve__item b{ display:block; font-size:36px; font-weight:800; color:var(--sp-teal); }
.sp-achieve__item span{ display:block; font-size:14.5px; color:var(--sp-muted-2); margin-top:8px; }

/* ==========================================================================
   10c. Partners / clients
   ========================================================================== */
.sp-partners{ padding:90px 28px; max-width:var(--sp-max); margin:0 auto; background:#f2fafa; border-radius:28px; }
.sp-partners__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:22px; }
.sp-partner-card{ background:#fff; border:1px solid var(--sp-line); border-radius:18px; padding:30px 24px; text-align:center; }
.sp-partner-card__avatar{ width:64px; height:64px; border-radius:50%; margin:0 auto 16px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; font-weight:800; }
.sp-partner-card__name{ font-size:15.5px; font-weight:700; color:var(--sp-ink); }
.sp-partner-card__role{ font-size:13px; color:var(--sp-muted-2); margin-top:4px; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width:900px){
  .sp-achieve{ padding:56px 20px; }
  .sp-partners{ padding:56px 20px; border-radius:20px; }
  .sp-hero{ padding:70px 20px 110px; }
  .sp-services{ padding:56px 20px 64px; }
  .sp-process{ padding:64px 20px; }
  .sp-why{ padding:70px 20px; }
  .sp-testimonials{ padding:70px 20px; }
  .sp-contact{ padding:70px 20px; }
  .sp-footer{ padding:48px 20px 24px; }
  .sp-wrap, .sp-trust, .sp-header__inner{ padding-inline:20px; }
  .sp-stats-bar{ margin-top:-48px; padding-inline:20px; }
  .sp-section-head{ margin-bottom:40px; }
}

@media (max-width:1024px){
  .sp-nav{
    display:none;
    position:absolute; inset-inline:0; top:100%;
    background:#fff; border-bottom:1px solid var(--sp-line);
    flex-direction:column; align-items:flex-start; gap:2px; padding:10px 20px 18px;
    box-shadow:0 16px 30px rgba(19,43,46,.08);
  }
  .sp-nav.is-open{ display:flex; }
  .sp-nav a{ width:100%; padding:10px 0; }
  .sp-nav-toggle{ display:flex; }
  .sp-header__actions .sp-btn{ padding:9px 16px; font-size:13.5px; }
  .sp-lang-switch__item{ padding:5px 10px; font-size:11.5px; }

  .sp-stats-bar__inner{ padding:20px 12px; }
  .sp-stats-bar__item{ flex:1 1 45%; border-inline-end:none !important; border-bottom:1px solid var(--sp-line); padding:14px 8px; }
  .sp-stats-bar__item:nth-child(3), .sp-stats-bar__item:nth-child(4){ border-bottom:none; }

  .sp-hero__grid{ gap:36px; }
  .sp-why, .sp-contact{ gap:36px; }
}

@media (max-width:480px){
  .sp-hero{ padding:56px 16px 90px; }
  .sp-hero__card{ padding:20px 16px 18px; }
  .sp-services, .sp-process, .sp-why, .sp-testimonials, .sp-contact{ padding-inline:16px; }
  .sp-wrap, .sp-trust, .sp-header__inner, .sp-stats-bar{ padding-inline:16px; }
  .sp-services__grid, .sp-process__grid{ grid-template-columns:1fr; }
  .sp-testimonials__grid{ grid-template-columns:1fr; }
  .sp-stats-bar__item{ flex:1 1 100%; }
  .sp-stats-bar__item:nth-child(3){ border-bottom:1px solid var(--sp-line); }
  .sp-footer__grid{ gap:32px; }
  .sp-contact__form{ padding:24px; }
}
