/*
Theme Name: CaspianServ
Theme URI: https://caspianserv.ir
Author: CaspianServ Team
Author URI: https://caspianserv.ir
Description: قالب حرفه‌ای سئو و بازاریابی دیجیتال کاسپین سرو. کاملاً داینامیک با پشتیبانی CodeStar Framework، اسلایدر سبک و تمام بخش‌ها قابل ویرایش از پنل مدیریت.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: caspianserv
Tags: marketing, seo, business, custom-menu, featured-images, translation-ready, rtl-language-support
*/

:root {
  --primary: #ff4800;
  --primary-dark: #e03e00;
  --secondary: #0f1341;
  --dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --success: #22c55e;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

@font-face {
    font-family: 'irsans';
    font-style: normal;
    font-weight: 500;
    src: url('./assets/fonts/irsans/irsans.eot');
    src: url('./assets/fonts/irsans/irsans.woff') format("embedded-opentype"),
         url('./assets/fonts/irsans/irsans.ttf') format("truetype");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'irsans', 'Tahoma', 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.8; color: var(--text); background: var(--white); overflow-x: hidden; direction: rtl; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); font-family: inherit; float: left; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,0,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 34px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -8px; right: 50%; transform: translateX(50%); width: 50px; height: 3px; background: var(--primary); border-radius: 2px; }
.section-title p { color: var(--text-light); max-width: 600px; margin: 20px auto 0; }

/* Top Bar */
.top-bar { background: var(--secondary); color: #cbd5e1; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar a:hover { color: var(--primary); }

/* Header */
.site-header { background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--secondary); }
.site-logo img { height: 42px; width: auto; }
.site-logo span { color: var(--primary); }
.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--secondary); position: relative; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--primary); }
.main-nav a::after { content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.main-nav a:hover::after { width: 100%; }
.header-cta .btn { padding: 10px 22px; font-size: 13px; }
.service-request-btn { font-family: inherit; padding: 10px 22px; font-size: 13px; margin-inline-end: 10px; white-space: nowrap; }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--secondary); }

/* Hero */
.hero-section { position: relative; background: linear-gradient(135deg, #f0f7ff 0%, #fff5eb 100%); overflow: hidden; padding: 80px 0 60px; }
.hero-slide { display: none; align-items: center; gap: 40px; }
.hero-slide.active { display: flex; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 42px; font-weight: 800; color: var(--secondary); line-height: 1.35; margin-bottom: 20px; }
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 17px; color: var(--text-light); margin-bottom: 30px; max-width: 480px; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; max-height: 380px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: none; box-shadow: var(--shadow); cursor: pointer; font-size: 18px; color: var(--secondary); z-index: 10; transition: var(--transition); }
.hero-nav:hover { background: var(--primary); color: var(--white); }
.hero-nav.prev { right: 20px; }
.hero-nav.next { left: 20px; }
.hero-features { display: flex; justify-content: center; gap: 30px; margin-top: 50px; flex-wrap: wrap; }
.hero-feature-item { display: flex; align-items: center; gap: 14px; background: var(--white); padding: 16px 24px; border-radius: 12px; box-shadow: var(--shadow); min-width: 260px; }
.hero-feature-item .icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--white); }
.hero-feature-item .icon.yellow { background: #f59e0b; }
.hero-feature-item .icon.red { background: #ef4444; }
.hero-feature-item .icon.cyan { background: #06b6d4; }
.hero-feature-item h4 { font-size: 15px; font-weight: 700; color: var(--secondary); margin-bottom: 2px; }
.hero-feature-item p { font-size: 12px; color: var(--text-light); margin: 0; }

/* Services */
.services-section { padding: 90px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card { background: var(--light-bg); border-radius: 12px; padding: 40px 30px; text-align: center; transition: var(--transition); border: 1px solid transparent; }
.service-card:hover { background: var(--white); box-shadow: var(--shadow); border-color: var(--border); transform: translateY(-8px); }
.service-card .icon-box { width: 70px; height: 70px; margin: 0 auto 24px; background: linear-gradient(135deg, #fff0e6, #ffe4cc); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary); }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.service-card .read-more { font-size: 13px; font-weight: 600; color: var(--primary); }

/* SEO Score */
.seo-score-section { padding: 80px 0; background: var(--secondary); color: var(--white); position: relative; overflow: hidden; }
.seo-score-inner { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.seo-score-form h2 { font-size: 30px; margin-bottom: 10px; }
.seo-score-form p { opacity: 0.8; margin-bottom: 25px; font-size: 14px; }
.seo-score-form input { width: 100%; padding: 14px 18px; border-radius: 8px; border: none; margin-bottom: 12px; font-size: 14px; font-family: inherit; }
.seo-score-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.seo-score-circle { text-align: center; }
.score-ring { width: 160px; height: 160px; border-radius: 50%; background: conic-gradient(var(--primary) 0% 78%, rgba(255,255,255,0.15) 78% 100%); display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; position: relative; }
.score-ring::before { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--secondary); }
.score-value { position: relative; z-index: 1; font-size: 36px; font-weight: 800; }
.seo-score-video { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; cursor: pointer; }

/* Features */
.features-section { padding: 90px 0; background: var(--light-bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; background: var(--white); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.feature-item { display: flex; gap: 16px; padding: 20px; border-radius: 10px; transition: var(--transition); }
.feature-item:hover { background: var(--light-bg); }
.feature-item .icon { width: 50px; height: 50px; min-width: 50px; border-radius: 12px; background: linear-gradient(135deg, #fff0e6, #ffe8d6); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); }
.feature-item h4 { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: var(--text-light); margin: 0; }

/* Efficient */
.efficient-section { padding: 90px 0; background: var(--white); }
.efficient-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.efficient-content h2 { font-size: 32px; font-weight: 800; color: var(--secondary); margin-bottom: 20px; line-height: 1.4; }
.efficient-content > p { color: var(--text-light); margin-bottom: 30px; }
.efficient-list { display: flex; flex-direction: column; gap: 20px; }
.efficient-list-item { display: flex; gap: 16px; align-items: flex-start; }
.efficient-list-item .num { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.efficient-list-item h4 { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.efficient-list-item p { font-size: 13px; color: var(--text-light); margin: 0; }

/* Case Studies */
.case-studies-section { padding: 90px 0; background: var(--light-bg); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.case-card img { width: 100%; height: 180px; object-fit: cover; }
.case-card-body { padding: 20px; }
.case-card h3 { font-size: 15px; font-weight: 600; color: var(--secondary); margin-bottom: 8px; }
.case-card .stats { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.case-card .read-more { font-size: 13px; font-weight: 600; color: var(--primary); }

/* Testimonials */
.testimonials-section { padding: 90px 0; background: var(--secondary); color: var(--white); }
.testimonials-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; }
.testimonials-title h2 { font-size: 34px; font-weight: 800; line-height: 1.4; }
.testimonial-content .quote { font-size: 48px; color: var(--primary); line-height: 1; margin-bottom: 15px; }
.testimonial-content p { font-size: 17px; line-height: 1.8; opacity: 0.95; margin-bottom: 25px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.testimonial-author h4 { font-size: 16px; font-weight: 700; }
.testimonial-author span { font-size: 13px; opacity: 0.7; }
.testimonial-nav { display: flex; gap: 10px; margin-top: 30px; }
.testimonial-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: white; cursor: pointer; }

/* Pricing */
.pricing-section { padding: 90px 0; background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; }
.pricing-card { background: var(--light-bg); border-radius: 16px; padding: 40px 30px; text-align: center; position: relative; transition: var(--transition); border: 2px solid transparent; }
.pricing-card.popular { background: var(--white); border-color: var(--primary); box-shadow: 0 15px 40px rgba(255,107,0,0.15); transform: scale(1.05); }
.pricing-card .badge { position: absolute; top: -12px; left: 20px; background: var(--primary); color: white; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.pricing-card .icon { width: 60px; height: 60px; margin: 0 auto 20px; background: linear-gradient(135deg, #fff0e6, #ffe4cc); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--primary); }
.pricing-card h3 { font-size: 22px; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.pricing-card .price { font-size: 38px; font-weight: 800; color: var(--primary); margin: 15px 0; }
.pricing-card .price span { font-size: 14px; font-weight: 500; color: var(--text-light); }
.pricing-card ul { margin: 25px 0; text-align: right; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.pricing-card ul li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-card .btn { width: 100%; justify-content: center; margin-top: 10px; }

/* Partners */
.partners-section { padding: 70px 0; background: var(--light-bg); }
.partners-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: center; }
.partners-text h3 { font-size: 24px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.partners-text p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

/* Footer */
.site-footer { background: var(--dark); color: #94a3b8; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary); }
.footer-subscribe input { width: 100%; padding: 12px 16px; border-radius: 6px; border: 1px solid #334155; background: #1e293b; color: white; margin-bottom: 12px; font-family: inherit; }
.footer-subscribe .btn { width: 100%; justify-content: center; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: #1e293b; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: white; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; text-align: center; font-size: 13px; }

/* Bottom CTA */
.bottom-cta { background: var(--primary); padding: 30px 0; text-align: center; color: white; }
.bottom-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 15px; }
.bottom-cta .btn { background: var(--secondary); color: white; }

/* Responsive */
@media (max-width: 992px) {
  .hero-slide.active { flex-direction: column; text-align: center; }
  .hero-content p { margin-right: auto; margin-left: auto; }
  .hero-content h1 { font-size: 32px; }
  .services-grid, .features-grid, .case-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .seo-score-inner, .efficient-inner, .testimonials-inner, .partners-inner, .footer-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .services-grid, .features-grid, .case-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero-features { flex-direction: column; align-items: center; }
  .section-title h2 { font-size: 26px; }
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  z-index: 2000;
  padding: 0;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 22px 28px;
  overflow-y: auto;
}
.mobile-menu-header {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-close {
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--secondary);
  z-index: 2;
}
.mobile-menu-logo {
  text-align: center;
  padding: 8px 36px 4px;
}
.mobile-menu-logo img {
  max-height: 52px;
  width: auto;
  display: inline-block;
}
.mobile-logo-text {
  display: inline-block;
  text-align: center;
  color: var(--secondary);
}
.mobile-logo-text strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}
.mobile-logo-text small {
  display: block;
  font-size: 12px;
  color: var(--text-light, #888);
  margin-top: 4px;
  font-weight: 500;
}
.mobile-menu-nav {
  flex: 1;
  padding: 12px 0 20px;
}
.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu-nav li {
  margin-bottom: 4px;
  border-bottom: 1px solid #f5f5f5;
}
.mobile-menu-nav a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  padding: 12px 4px;
  transition: color 0.2s;
}
.mobile-menu-nav a:hover {
  color: var(--primary);
}
.mobile-menu-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}
.mobile-social {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.mobile-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,72,0,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
.mobile-social a:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  margin-bottom: 10px;
}
.mobile-phone-link {
  display: block;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
}
.mobile-overlay.show {
  display: block;
}
body.mobile-menu-open {
  overflow: hidden;
}

/* =====================================================
   Hero Slider – شبیه رولوشن (بدون رولوشن)
   ===================================================== */
.cs-hero {
  position: relative;
  width: 100%;
  height: min(85vh, 620px);
  overflow: hidden;
  background: #0f172a;
}

.cs-hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.cs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
  transform: translateX(0);
  display: flex;
  align-items: center;
}

.cs-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.cs-slide.is-enter-right { transform: translateX(-40px); opacity: 0; }
.cs-slide.is-enter-left  { transform: translateX(40px); opacity: 0; }
.cs-slide.is-exit-left   { transform: translateX(40px); opacity: 0; }
.cs-slide.is-exit-right  { transform: translateX(-40px); opacity: 0; }

.cs-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.cs-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cs-slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.cs-slide-inner.align-center {
  justify-content: center;
  text-align: center;
}
.cs-slide-inner.align-center .cs-slide-content {
  margin: 0 auto;
}
.cs-slide-inner.align-left {
  flex-direction: row-reverse;
}

.cs-slide-content {
  flex: 1;
  max-width: 560px;
  color: #fff;
}

.cs-slide-content h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 18px;
  color: #fff;
}

.cs-slide-content h1 .hl {
  color: var(--primary);
}

.cs-slide-content p {
  font-size: clamp(14px, 2vw, 17px);
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.8;
}

.cs-slide-media {
  flex: 1;
  max-width: 480px;
  display: flex;
  justify-content: center;
}

.cs-slide-media img {
  max-height: 380px;
  width: auto;
  border-radius: 12px;
}

.cs-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.cs-hero-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.cs-hero-nav.prev { right: 16px; }
.cs-hero-nav.next { left: 16px; }

.cs-hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.cs-hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.cs-hero-dots button.is-active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}

/* Features under hero */
.cs-hero-features {
  margin-top: -40px;
  position: relative;
  z-index: 5;
  padding-bottom: 20px;
}

/* Newsletter form */
.cs-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

.cs-newsletter-msg {
  font-size: 13px;
  margin-top: 4px;
  min-height: 1.2em;
}
.cs-newsletter-msg.is-success { color: #4ade80; }
.cs-newsletter-msg.is-error { color: #f87171; }

/* Page templates */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1a2332 100%);
  color: #fff;
  padding: 70px 0 50px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p {
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

.page-content-section {
  padding: 70px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-grid .about-text {
  text-align: justify;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.about-stat {
  text-align: center;
  background: var(--light-bg);
  border-radius: 12px;
  padding: 24px 12px;
}

.about-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}

.about-stat .lbl {
  font-size: 13px;
  color: var(--text-light);
}

.contact-info-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0e6, #ffe4cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
}

.contact-info-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.contact-form-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-form-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}

.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 14px;
}

.contact-form-box textarea {
  min-height: 120px;
  resize: vertical;
}

/* Responsive improvements */
@media (max-width: 992px) {
  .cs-hero { height: min(70vh, 520px); }
  .cs-slide-inner { flex-direction: column; text-align: center; }
  .cs-slide-content { max-width: 100%; }
  .cs-slide-media { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cs-hero { height: auto; min-height: 420px; }
  .cs-slide { padding: 60px 0 80px; }
  .cs-hero-nav { width: 40px; height: 40px; font-size: 14px; }
  .cs-hero-nav.prev { right: 8px; }
  .cs-hero-nav.next { left: 8px; }
  .cs-hero-features { margin-top: 0; padding: 30px 0; }
  .hero-features { flex-direction: column; align-items: stretch; padding: 0 15px; }
  .hero-feature-item { min-width: 0; width: 100%; }
  .services-grid, .features-grid, .case-grid, .pricing-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 50px 0 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .top-bar .container { flex-direction: column; text-align: center; }
  .top-bar-left, .top-bar-right { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .cs-slide-content h1 { font-size: 24px; }
  .btn { padding: 10px 18px !important; font-size: 10px !important; }
  .section-title h2 { font-size: 24px; }
  .pricing-card.popular { transform: none; }
}

/* ===== Hero layout: image LEFT, text RIGHT (RTL) ===== */
.cs-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: min(80vh, 600px);
  overflow: hidden;
  background: #0f172a;
}

.cs-hero-track { position: relative; width: 100%; height: 100%; }

.cs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  display: flex;
  align-items: center;
}

.cs-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.cs-slide-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: row; /* RTL: first child = right visually? In RTL flex-start is right */
  align-items: center;
  gap: 48px;
  direction: rtl;
}

/* In RTL: first DOM element appears on the RIGHT. We want TEXT on right, IMAGE on left.
   So in HTML: image first, then content → with direction:rtl image goes left, content goes right. Wait.
   RTL flex: main-start is on the right. First item is placed at the right.
   HTML order: media then content → media on right, content on left. WRONG.
   HTML order should be: content first, then media → content right, media left. */

.cs-slide-content {
  flex: 1 1 50%;
  max-width: 540px;
  color: #fff;
}

.cs-slide-content h1 {
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #fff;
}
.cs-slide-content h1 .hl { color: var(--primary); }
.cs-slide-content p {
  font-size: clamp(14px, 1.8vw, 17px);
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.8;
}

.cs-slide-media {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cs-slide-media img {
  max-height: 360px;
  max-width: 100%;
  width: auto;
  border-radius: 16px;
  object-fit: contain;
}
.cs-slide-placeholder {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(6,182,212,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: var(--primary);
  opacity: 0.7;
}

/* Animate.css targets – initially hidden until JS adds .animated */
.cs-anim-target {
  opacity: 0;
}
.cs-anim-target.animated {
  opacity: 1;
}
/* First paint fallback if JS delayed */
.cs-slide.is-active .cs-anim-target.animated {
  opacity: 1;
}

/* Testimonials slider */
.cs-testi-slider {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.cs-testi-track { position: relative; min-height: 220px; }
.cs-testi-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  padding: 10px 20px;
}
.cs-testi-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.cs-testi-text {
  font-size: 18px;
  line-height: 1.9;
  opacity: 0.95;
  margin: 16px 0 28px;
}
.cs-testi-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border: 3px solid var(--primary);
}
.testimonial-author {
  justify-content: center;
}
.cs-testi-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.cs-testi-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.cs-testi-nav button:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.testimonials-section .section-title h2::after {
  background: var(--primary);
}

@media (max-width: 768px) {
  .cs-slide-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 50px 16px 70px;
  }
  .cs-slide-content { max-width: 100%; }
  .cs-slide-media img { max-height: 220px; }
  .cs-slide-placeholder { width: 180px; height: 180px; font-size: 48px; }
}

/* Match original GoSearch feel */
.services-section { padding: 100px 0 80px; }
.service-card {
  background: #fff;
  border: 1px solid #f2f2f2;
  box-shadow: 0 0 0 transparent;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.pricing-section { padding: 100px 0; background: #f8f8f8; }
.pricing-card { background: #fff; }
.case-studies-section { padding: 100px 0; }
/* .btn-primary { border: 2px solid var(--primary); text-transform: uppercase; letter-spacing: 0.5px; font-size: 13px; } */
.btn-outline { text-transform: uppercase; letter-spacing: 0.5px; font-size: 13px; }
.section-title h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== GoSearch-like sections ========== */
.sec-title { text-align: center; margin-bottom: 50px; }
.sec-title.centered { text-align: center; }
.sec-title h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.sec-title .text {
  color: #808080;
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Featured under hero */
.featured-section {
  margin-top: -60px;
  position: relative;
  z-index: 20;
  padding-bottom: 40px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured-block .inner-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.featured-block .inner-box:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.featured-block .upper-box {
  padding: 28px 24px 20px;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}
.featured-block .upper-box .text { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 12px; }
.featured-block .read-more { color: var(--primary); font-size: 13px; font-weight: 600; }
.featured-block .lower-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
}
.featured-block .icon-box {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
}
.featured-block .icon-box.yellow { background: #f5a623; }
.featured-block .icon-box.red { background: #e74c3c; }
.featured-block .icon-box.cyan { background: #1abc9c; }
.featured-block .lower-text h3 { font-size: 16px; margin-bottom: 4px; }
.featured-block .lower-text h3 a { color: var(--secondary); }
.featured-block .lower-text .title { font-size: 13px; color: #888; }

/* Services */
.services-section { padding: 90px 0 70px; background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.services-block .inner-box {
  background: #fff;
  border: 1px solid #f2f2f2;
  padding: 32px 28px;
  border-radius: 8px;
  transition: all 0.3s;
  height: 100%;
}
.services-block .inner-box:hover {
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.services-block .icon-box {
  width: 64px; height: 64px;
  background: rgba(255,72,0,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--primary);
  margin-bottom: 18px;
}
.services-block h3 { font-size: 18px; margin-bottom: 10px; }
.services-block h3 a { color: var(--secondary); }
.services-block .text { font-size: 14px; color: #808080; line-height: 1.7; margin-bottom: 14px; }
.services-block .read-more { color: var(--primary); font-size: 13px; font-weight: 600; }

/* Some Features with overlay */
.featured-section-two {
  padding: 90px 0;
  background: #f4f4f4;
}
.features-two-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #f2f2f2;
}
.featured-block-two {
  border-left: 1px solid #f2f2f2;
  border-bottom: 1px solid #f2f2f2;
}
.featured-block-two:nth-child(3n) { border-left: none; }
.featured-block-two .inner-box {
  position: relative;
  padding: 40px 30px;
  text-align: center;
  min-height: 220px;
  overflow: hidden;
}
.featured-block-two .icon-box {
  font-size: 36px; color: var(--primary); margin-bottom: 16px;
}
.featured-block-two h3 { font-size: 18px; color: var(--secondary); margin-bottom: 10px; }
.featured-block-two .text { font-size: 14px; color: #808080; }
.featured-block-two .overlay-box {
  position: absolute; inset: 0;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.35s ease;
}
.featured-block-two .inner-box:hover .overlay-box {
  opacity: 1; visibility: visible;
}
.featured-block-two .overlay-inner { text-align: center; color: #fff; }
.featured-block-two .overlay-icon-box {
  font-size: 40px; color: var(--primary); margin-bottom: 12px;
}
.featured-block-two .overlay-inner h3 a { color: #fff; font-size: 18px; }

/* Marketing */
.marketing-section { padding: 100px 0; background: #fff; }
.marketing-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.marketing-image img { width: 100%; border-radius: 8px; }
.marketing-content h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.marketing-content h2 .hl { color: var(--primary); }
.marketing-content .lead { color: #808080; margin-bottom: 30px; font-size: 15px; }
.market-content { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #f2f2f2; }
.market-content .content-inner { position: relative; padding-right: 50px; }
.market-content .content-number {
  position: absolute; right: 0; top: 0;
  font-size: 28px; font-weight: 800; color: var(--primary);
}
.market-content h3 { font-size: 18px; color: var(--secondary); margin-bottom: 8px; }
.market-content .text { font-size: 14px; color: #808080; margin-bottom: 16px; }
.featured-block-three { margin-bottom: 14px; }
.featured-block-three .featured-inner {
  display: flex; gap: 14px; align-items: flex-start;
}
.featured-block-three .icon-box {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,72,0,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.featured-block-three h4 { font-size: 15px; color: var(--secondary); margin-bottom: 4px; }
.featured-block-three .featured-text { font-size: 13px; color: #888; }

/* Case Studies */
.case-section { padding: 90px 0; background: #fff; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-block .inner-box {
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* یکی در میان مثل قالب اصلی: عادی = تصویر بالا، alternate = متن بالا */
.case-block.alternate .inner-box { flex-direction: column; }
.case-block .image-box .image {
  position: relative;
  min-height: 200px;
  background: #eee;
  overflow: hidden;
}
.case-block .image-box img { width: 100%; height: 200px; object-fit: cover; display: block; }
.case-placeholder {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f1341, #1a2450); color: rgba(255,255,255,0.3); font-size: 48px;
}
.case-block .overlay-box {
  position: absolute; inset: 0;
  background: rgba(15,19,65,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.case-block .image:hover .overlay-box { opacity: 1; }
.case-block .content-box { padding: 24px; flex: 1; }
.case-block .options { display: flex; gap: 12px; margin-bottom: 12px; list-style: none; padding: 0; }
.case-block .options li {
  width: 36px; height: 36px; border-radius: 50%; background: #f4f4f4;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 14px;
}
.case-block .content-box .text { font-size: 14px; color: #666; margin-bottom: 12px; line-height: 1.7; }
.case-block .read-more { color: var(--primary); font-size: 13px; font-weight: 600; }

/* Testimonials */
.testimonial-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--secondary);
  color: #fff;
}
.testimonial-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  z-index: 0;
}
.testimonial-section.has-testi-bg::before { display: none; }
.testi-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  z-index: 0;
}
.testimonial-section .container { position: relative; z-index: 1; }
.testimonial-row {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 40px;
  align-items: center;
}
.testimonial-section .title-column h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-transform: none;
}
.testimonial-slider { position: relative; min-height: 280px; }
.cs-testi-slide {
  display: none;
  opacity: 0;
}
.cs-testi-slide.is-active {
  display: block;
  opacity: 1;
}
.testimonial-block .quote-icon {
  font-size: 36px; color: var(--primary); margin-bottom: 16px;
}
.testimonial-block .text {
  font-size: 18px; line-height: 1.8; color: rgba(255,255,255,0.9); margin-bottom: 16px; text-align: justify; 
}
.testimonial-block .continue { color: var(--primary); font-size: 13px; font-weight: 600; }
.testimonial-block .author-info { margin-top: 28px; }
.testimonial-block .author-inner { display: flex; align-items: center; gap: 14px; }
.testimonial-block .author-inner .image {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.testimonial-block .author-inner .image img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-block .author-inner h3 { font-size: 16px; color: #fff; margin-bottom: 2px; }
.testimonial-block .designation { font-size: 13px; color: var(--primary); }
.testi-nav { margin-top: 24px; display: flex; gap: 10px; justify-content: flex-end; }
.testi-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3); background: transparent;
  color: #fff; cursor: pointer; transition: all 0.3s;
}
.testi-nav button:hover { background: var(--primary); border-color: var(--primary); }

/* Pricing */
.price-section { padding: 90px 0; background: #f8f8f8; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-block .inner-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  border: 1px solid #f2f2f2;
  transition: all 0.3s;
  height: 100%;
}
.price-block.active .inner-box,
.price-block .inner-box:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}
.price-block .ribbon {
  position: absolute; top: 16px; left: 16px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; text-transform: uppercase;
}
.price-block .icon-box { font-size: 40px; color: var(--primary); margin-bottom: 12px; }
.price-block h2 { font-size: 22px; color: var(--secondary); margin-bottom: 18px; text-transform: uppercase; }
.price-block ul { list-style: none; padding: 0; margin: 0 0 20px; }
.price-block ul li {
  padding: 8px 0; border-bottom: 1px solid #f2f2f2;
  font-size: 14px; color: #666;
}
.price-block .price {
  font-size: 36px; font-weight: 800; color: var(--secondary); margin-bottom: 20px;
}
.price-block .price span { font-size: 13px; font-weight: 400; color: #888; }

/* Partners */
.partners-section { padding: 80px 0; background: #fff; }
.partners-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.partners-title-col h2 { font-size: 28px; color: var(--secondary); margin-bottom: 14px; }
.partners-title-col .text { color: #808080; margin-bottom: 20px; font-size: 15px; }
.partners-list-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.partner-block .inner-box {
  background: #f8f8f8; padding: 28px; border-radius: 8px; height: 100%;
}
.partner-block .client-img { margin-bottom: 12px; font-size: 22px; font-weight: 800; color: var(--secondary); }
.partner-block .client-img img { max-height: 40px; width: auto; }
.partner-block .text { font-size: 14px; color: #666; margin-bottom: 12px; line-height: 1.7; }
.partner-block .read-more { color: var(--primary); font-size: 13px; font-weight: 600; }

/* FAQ */
.faq-section { padding: 90px 0; background: var(--light-bg); }
.faq-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.faq-title-col h2 { font-size: 30px; font-weight: 700; color: var(--secondary); line-height: 1.4; margin-bottom: 16px; }
.faq-title-col .text { color: var(--text-light); font-size: 15px; line-height: 1.9; margin-bottom: 26px; text-align: justify; }
.faq-list-col { display: flex; flex-direction: column; gap: 14px; }
.faq-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-block.active,
.faq-block:hover { border-color: transparent; box-shadow: var(--shadow); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}
.faq-question span { font-size: 15.5px; font-weight: 600; color: var(--secondary); }
.faq-question i {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}
.faq-block.active .faq-question i { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-block.active .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 22px; font-size: 14px; color: var(--text-light); line-height: 1.9; }

/* Service Request Modal */
.cs-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 19, 65, 0.6);
  z-index: 2100;
}
.cs-modal-overlay.show { display: block; }
.cs-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2101;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cs-modal.show { display: flex; }
.cs-modal-box {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 15px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cs-modal-close {
  position: absolute;
  top: 14px; left: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--light-bg);
  color: var(--text-light);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.cs-modal-close:hover { background: var(--primary); color: #fff; }
.cs-modal-box h3 { font-size: 17px; text-align: center; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.cs-modal-desc { font-size: 11.5px; text-align: center; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.cs-form-group { margin-bottom: 10px; }
.cs-form-group label { display: block; font-size: 11.5px; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.cs-form-group input[type="text"],
.cs-form-group input[type="tel"],
.cs-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text);
  resize: vertical;
  transition: var(--transition);
}
.cs-form-group input:focus,
.cs-form-group textarea:focus { outline: none; border-color: var(--primary); }
.cs-radio-row { display: flex; gap: 20px; }
.cs-radio { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.cs-radio input { accent-color: var(--primary); width: 16px; height: 16px; }
.cs-form-msg { font-size: 13px; margin-bottom: 12px; display: none; }
.cs-form-msg.show { display: block; }
.cs-form-msg.success { color: var(--success); }
.cs-form-msg.error { color: #dc2626; }
.cs-form-submit { width: 100%; justify-content: center; font-family: inherit; }
.cs-form-submit[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ========== Fixed footer + bottom parallax ========== */
.page-content-wrap {
  position: relative;
  z-index: 2;
  background: #fff;
  margin-bottom: 0;
}
.main-footer {
  background: #0f1341;
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
  position: relative;
  z-index: 3;
}
.footer-widgets-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-title h2 {
  font-size: 18px; color: #fff; margin-bottom: 22px;
  text-transform: uppercase; font-weight: 700;
}
.footer-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.footer-list a:hover { color: var(--primary); }
.subscribe-widget .text { font-size: 14px; margin-bottom: 16px; line-height: 1.7; }
.subscribe-form .form-group {
  display: flex; background: #fff; border-radius: 50px; overflow: hidden;
}
.subscribe-form input {
  flex: 1; border: none; padding: 12px 18px; font-size: 14px; outline: none;
  font-family: inherit;
}
.subscribe-form button {
  background: var(--primary); color: #fff; border: none;
  width: 48px; cursor: pointer; font-size: 16px;
}
.social-icon-one { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 12px; }

.social-icon-one a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social-icon-one a:hover { background: #fff }
.office-info ul { list-style: none; padding: 0; margin: 10px 0; font-size: 14px; line-height: 1.9; }
.office-info a { color: var(--primary); }
.main-footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; padding: 18px 15px; font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Bottom parallax – ثابت پشت محتوا، با اسکرول نمایان */
.bottom-parallax {
  position: relative;
  z-index: 1;
  background: #0a0d2e;
}
.about-section-cta {
  padding: 80px 0;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.02) 10px,
    rgba(255,255,255,0.02) 20px
  );
}
.about-section-cta h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: #fff; font-weight: 700;
  margin-bottom: 24px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.btn-dark {
  display: inline-block;
  background: #fff; color: var(--secondary);
  padding: 12px 32px; border-radius: 50px;
  font-weight: 700; font-size: 13px; text-transform: uppercase;
  transition: all 0.3s;
}
.btn-dark:hover { background: var(--primary); color: #fff; }

.scroll-to-top {
  position: fixed; bottom: 20px; left: 20px;
  width: 44px; height: 64px; border-radius: 50px;
  background: var(--primary); color: #fff;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999; font-size: 20px;
  border: 2px solid var(--primary);
}
.scroll-to-top.show { display: flex; }

.mobile-close {
  position: absolute; top: 15px; left: 20px;
  background: none; border: none; font-size: 28px; cursor: pointer; color: #000;
}

/* Responsive */
@media (max-width: 991px) {
    .testimonial-row {
        gap: 0;
    }
  .featured-grid, .services-grid, .features-two-grid, .cases-grid, .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .marketing-row, .testimonial-row, .partners-row, .footer-widgets-row, .faq-row {
    grid-template-columns: 1fr;
  }
  .featured-section { margin-top: -30px; }
  .partners-list-col { grid-template-columns: 1fr; }
}
.services-btn-res {
    display: flex;
}
@media (max-width: 767px) {
    .services-btn-res {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
    .services-btn-res .service-request-btn {
        margin-inline-end: 0;
    }
  .featured-grid, .services-grid, .features-two-grid, .cases-grid, .pricing-grid {
    grid-template-columns: 1fr;
	gap: 10px;
  }
  .features-two-grid { border: none; gap: 12px; background: transparent; }
  .featured-block-two { border: 1px solid #f2f2f2; background: #fff; }
  .footer-lists { grid-template-columns: 1fr; }
  .featured-section { margin-top: 0; padding-top: 40px; }
  .services-section,
  .case-section,
  .featured-section-two,
  .testimonial-section,
  .price-section {
	padding: 30px 0;	
  }
  .sec-title .text {
	font-size: 13px;
  }
  .services-block .inner-box {
	display: flex;
    align-items: center;
    gap: 15px;
	padding: 15px 15px;
  }
  .services-block h3 {
	font-size: 14px;
	margin-bottom: 0;
  }
  .services-block .icon-box {
	margin-bottom: 0;
  }
  .sec-title {
	margin-bottom: 20px;
  }
  .case-block.alternate .inner-box {
	flex-direction: column-reverse;
  }
  .featured-block-two .inner-box {
	padding: 20px 10px;
  }
  .featured-block-two .icon-box {
	margin-bottom: 0;
  }
  .testimonial-block .text {
	margin-bottom: 0;
	font-size: 14px;
	height: 100px;
  }
  .testimonial-block .quote-icon {
      margin-bottom: 0;
  }
  .cs-testi-text {
	margin: 0;
  }
  .testi-nav {
	margin-top: 0;
  }
  .price-block .inner-box {
	padding: 20px 10px;
  }
  .faq-row {
	flex-direction: column;
    display: flex;
  }
}
/* Warranty box */
.warranty-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: var(--secondary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-bottom: 90px;
}
.warranty-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left,
    rgba(15,19,65,0.97) 0%,
    rgba(15,19,65,0.92) 45%,
    rgba(15,19,65,0.55) 70%,
    rgba(15,19,65,0.12) 75%,
    rgba(15,19,65,0) 100%);
}
.warranty-section .container { position: relative; z-index: 2; }
.warranty-content { max-width: 800px; margin-inline-end: auto; margin-inline-end: 0; padding: 60px 0; }
.warranty-content h2 { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 10px; }
.warranty-subtitle { color: var(--primary); font-weight: 600; font-size: 15px; margin-bottom: 26px; }
.warranty-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.warranty-columns .warranty-col:nth-child(2) li:nth-child(3) {
	font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
    width: fit-content;
}
.warranty-columns .warranty-col:nth-child(2) li:nth-child(3) i {
	display: none;
}
.warranty-col { list-style: none; margin: 0; padding: 0; }
.warranty-col li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 14px;
  text-align: justify;
}
.warranty-col li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }

/* Mobile truncated list + "show more" */
.warranty-mobile-list-wrap { display: none; }

/* Warranty bottom-sheet modal (لیست کامل بندها) */
.warranty-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,19,65,0.6);
  z-index: 2200;
}
.warranty-modal-overlay.show { display: block; }
.warranty-modal-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2201;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px 24px 30px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}
.warranty-modal-sheet.show { transform: translateY(0); }
.warranty-modal-close {
  position: absolute;
  top: 14px; left: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--light-bg);
  color: var(--text-light);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.warranty-modal-close:hover { background: var(--primary); color: #fff; }
.warranty-modal-sheet h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin: 0 0 16px; padding-inline-start: 40px; }
.warranty-modal-list { list-style: none; margin: 0; padding: 0; }
.warranty-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.warranty-modal-list li:last-child { border-bottom: none; }
.warranty-modal-list li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }

@media (max-width: 767px) {
  .warranty-section { min-height: auto; }
  .warranty-overlay {
    background: linear-gradient(180deg,
      rgba(15,19,65,0.5) 0%,
      rgba(15,19,65,0.9) 45%,
      rgba(15,19,65,0.97) 100%);
  }
  .warranty-content { max-width: 100%; margin: 0; padding: 40px 0; }
  .warranty-columns { display: none; }
  .warranty-mobile-list-wrap { display: block; position: relative; }
  .warranty-mobile-list { list-style: none; margin: 0; padding: 0; }
  .warranty-mobile-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 14px;
    text-align: justify;
  }
  .warranty-mobile-list li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
  .warranty-fade {
    position: absolute;
    left: 0; right: 0;
    bottom: 40px;
    height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0));
    pointer-events: none;
  }
  .warranty-more-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #fff;
    color: var(--secondary);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
  }
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrap {
  background: #f8f8f8; padding: 32px; border-radius: 10px;
}
.contact-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label {
  display: block; font-size: 13px; font-weight: 600; color: var(--secondary); margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0;
  border-radius: 8px; font-family: inherit; font-size: 14px;
  background: #fff; transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); outline: none; }

.cs-contact-msg.is-success { color: #0a7a32; font-size: 14px; font-weight: 600; }
.cs-contact-msg.is-error { color: #c0392b; font-size: 14px; font-weight: 600; }
.cs-newsletter-msg.is-success { color: #0a7a32; font-size: 13px; margin-top: 8px; }
.cs-newsletter-msg.is-error { color: #c0392b; font-size: 13px; margin-top: 8px; }
.page-hero {
  background: var(--secondary); color: #fff; padding: 80px 0 50px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.75); }
.page-content-section { padding: 60px 0 80px; }

.contact-map-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}
.contact-map {
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-bg);
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}
@media (max-width: 767px) {
  .contact-map iframe { height: 300px; }
}

@media (max-width: 767px) {
  .contact-grid, .contact-form .form-row { grid-template-columns: 1fr; }
}

/* Footer about (logo + text + enamad) */
.footer-about { text-align: right; }
.footer-about-logo { margin-bottom: 16px; }
.footer-about-logo img {
  max-height: 56px;
  width: auto;
  display: block;
}
.footer-about-logo-text strong {
  font-size: 22px;
  color: #fff;
  font-weight: 800;
}
.footer-about-text {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.footer-enamad {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.footer-enamad img {
  max-height: 80px;
  width: auto;
  display: inline-block;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
}
.footer-about .social-icon-one { margin-top: 8px; }
