/* ریک سرویس — تم اصلی */
:root {
  --primary: #f57c00;
  --primary-dark: #e65100;
  --primary-light: #fff3e0;
  --primary-soft: #ffe0b2;
  --accent: #0277bd;
  --accent-dark: #01579b;
  --accent-light: #e1f5fe;
  --accent-soft: #b3e5fc;
  --dark: #1a2744;
  --dark-soft: #2d3a52;
  --muted: #6b7280;
  --bg: #f5f9fc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 16px 48px rgba(2, 119, 189, 0.12);
  --bs-primary: #f57c00;
  --bs-primary-rgb: 245, 124, 0;
  --bs-link-color: #0277bd;
  --bs-link-hover-color: #01579b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[dir="rtl"] body {
  text-align: right;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

main {
  min-height: 60vh;
}

a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Top bar ─── */
.top-bar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: #fff;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  opacity: 0.9;
}

/* ─── Navbar ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.navbar-brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-soft);
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-dark);
  background: var(--accent-light);
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.25);
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 280px;
  margin: 0.75rem 0;
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
  background: var(--light, #f5f7fa);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-form:focus-within {
  border-color: var(--accent-soft, #90caf9);
  box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.12);
}

.header-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  outline: none;
  color: var(--dark);
}

.header-search-input::placeholder {
  color: var(--muted);
}

.header-search-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.35);
}

@media (min-width: 992px) {
  .header-search-form {
    width: auto;
    min-width: 220px;
    max-width: 260px;
    margin: 0 0.75rem 0 0;
  }

  #mainNav .navbar-collapse {
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .header-search-form {
    max-width: none;
    order: -1;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.25rem;
  box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark), #bf360c);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.45);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-outline-accent {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-outline-accent:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-outline-light {
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  background: linear-gradient(160deg, #e1f5fe 0%, #ffffff 40%, #fff8f0 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(2, 119, 189, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(245, 124, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--primary-dark);
  border: 1px solid var(--primary-soft);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.35;
  color: var(--dark);
  margin: 1.25rem 0;
}

.hero h1 span {
  color: var(--primary);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-stat:nth-child(odd) strong {
  color: var(--accent);
}

.hero-stat:nth-child(even) strong {
  color: var(--primary);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 124, 0, 0.1);
}

.hero-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  transition: transform 0.2s;
}

.hero-icon-item:nth-child(even) {
  background: var(--primary-light);
}

.hero-icon-item:hover {
  transform: translateY(-3px);
}

.hero-icon-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-icon-item:nth-child(even) i {
  color: var(--primary);
}

.hero-icon-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-soft);
}

/* ─── Sections ─── */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ─── Feature cards ─── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  border-radius: 14px;
  color: var(--accent-dark);
  font-size: 1.75rem;
}

.feature-card:nth-child(even) .icon-wrap {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft));
  color: var(--primary-dark);
}

.row > [class*="col-"]:nth-child(even) .feature-card .icon-wrap {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft));
  color: var(--primary-dark);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* ─── Service cards ─── */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow);
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  transition: height 0.3s ease;
}

.service-card:nth-child(even)::before {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

.row > [class*="col-"]:nth-child(even) .service-card::before {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-soft);
}

.service-card:hover::before {
  height: 100%;
}

.service-card .service-icon {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card:nth-child(even) .service-icon {
  color: var(--primary);
}

.row > [class*="col-"]:nth-child(even) .service-card .service-icon {
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ─── Steps ─── */
.steps-row {
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: relative;
  top: auto;
  right: auto;
  align-self: flex-start;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

.step-card:nth-child(even)::before {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.steps-row > [class*="col-"]:nth-child(even) .step-card::before {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  padding: 0;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ─── Brands strip ─── */
.brands-strip {
  background: linear-gradient(135deg, var(--dark), #0d3d6b);
  color: #fff;
  padding: 2.5rem 0;
}

.brands-strip h3 {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.brand-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ─── FAQ ─── */
.accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-button {
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  padding: 1.1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background: var(--accent-light);
  color: var(--accent-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.2);
}

.accordion-button::after {
  filter: hue-rotate(-30deg) saturate(2);
}

/* ─── CTA ─── */
.cta-box {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent) 45%, var(--primary) 100%);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-box p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-box .btn-light {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ─── Contact card ─── */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* فقط وقتی یک کارت در ستون است، ارتفاع ستون را پر کند */
[class*="col-"] > .contact-info-card:only-child {
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  font-size: 1.25rem;
}

.contact-info-item:nth-child(even) .icon {
  background: var(--primary-light);
  color: var(--primary);
}

.contact-info-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--primary);
}

/* ─── Page header ─── */
.page-header {
  background: linear-gradient(160deg, #e1f5fe, #ffffff);
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header h1 {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.breadcrumb-nav {
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
}

.site-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--primary-soft);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent-soft);
}

.footer-logo img {
  display: block;
  height: auto;
  max-height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* ─── Quick call (mobile) ─── */
.quick-call-btn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: block;
  text-align: center;
  background: linear-gradient(90deg, var(--accent-dark), var(--primary));
  color: #fff !important;
  padding: 0.95rem 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 -4px 20px rgba(245, 124, 0, 0.4);
}

body {
  padding-bottom: 0;
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: 56px;
  }
}

/* ─── Utilities ─── */
.rounded-12 {
  border-radius: var(--radius);
}

.shadow-soft {
  box-shadow: var(--shadow);
}

.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-light {
  background: var(--primary-light) !important;
}

/* ─── Pagination ─── */
.pagination .page-link {
  color: var(--primary);
  border-radius: 8px;
  margin: 0 3px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ─── 404 ─── */
.error-page {
  text-align: center;
  padding: 5rem 1rem;
}

.error-page .error-code {
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-stats {
    gap: 1rem;
  }

  .step-card {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero-card {
    padding: 1.25rem;
  }

  .cta-box {
    padding: 2rem 1.25rem;
  }
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
