.paintix-services-section {
  padding-block: clamp(5rem, 9vw, 8.5rem);
  overflow: clip;
}

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

.ce-component {
  --ce-ink: var(--slc-color-ink-strong, #102f4c);
  --ce-copy: var(--slc-color-ink-muted, #526d84);
  --ce-accent: var(--slc-color-action, #2563eb);
  --ce-accent-strong: var(--slc-color-action-hover, #174ea6);
  --ce-soft: var(--slc-color-surface-muted, #edf5fb);
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  direction: rtl;
  color: var(--ce-copy);
  font-family: "IRANSansX", Tahoma, "Segoe UI", sans-serif;
}

.ce-component__heading,
.ce-component__content {
  min-width: 0;
}

.ce-component__heading {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2vw, 1.5rem);
  align-items: stretch;
  text-align: right;
}

.ce-component__title {
  display: flex;
  width: 100%;
  max-width: 19ch;
  flex-direction: column;
  gap: 0.08em;
  margin: 0;
  color: var(--ce-ink);
  font-family: "PeydaWeb", "IRANSansX", Tahoma, sans-serif;
  font-size: clamp(2.35rem, 3.55vw, 3.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ce-component__title > span {
  display: block;
}

.ce-component__title-accent {
  color: var(--ce-accent);
}

.ce-component__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: flex-start;
}

.ce-component__description {
  max-width: 42rem;
  margin: 0;
  color: var(--ce-copy);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  font-weight: 400;
  line-height: 2.05;
  text-align: justify;
  text-align-last: right;
  text-wrap: pretty;
}

.ce-component__button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  gap: 0.7rem;
  overflow: hidden;
  padding: 0.8rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--ce-accent);
  color: #fff;
  font-family: "PeydaWeb", "IRANSansX", Tahoma, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 240ms ease, transform 240ms ease;
}

.ce-component__button:is(:hover, :focus-visible) {
  color: #fff;
  transform: translateY(-2px);
}

.ce-component__button:focus-visible {
  outline: 2px solid var(--ce-accent-strong);
  outline-offset: 3px;
}

.ce-component__button-icon,
.ce-component__button-text {
  position: relative;
  z-index: 2;
}

.ce-component__button-icon {
  display: inline-grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
}

.ce-component__button-icon svg {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
  transform: scaleX(-1);
}

.ce-component__button-fill {
  position: absolute;
  z-index: 1;
  top: var(--ce-pointer-y, 50%);
  left: var(--ce-pointer-x, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--ce-accent-strong);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1), height 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-component__button:is(:hover, :focus-visible) .ce-component__button-fill {
  width: 240%;
  height: 20rem;
}

@media (max-width: 64rem) {
  .ce-component {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .ce-component__title {
    max-width: 20ch;
    font-size: clamp(2.3rem, 5.5vw, 3.35rem);
  }

  .ce-component__description {
    max-width: 50rem;
  }
}

@media (max-width: 40rem) {
  .paintix-services-section {
    padding-block: clamp(3.75rem, 16vw, 5rem);
  }

  .ce-component {
    gap: 1.6rem;
  }

  .ce-component__heading {
    gap: 1rem;
  }

  .ce-component__title {
    max-width: 16ch;
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.22;
  }

  .ce-component__description {
    font-size: 0.92rem;
    line-height: 1.95;
  }

  .ce-component__button {
    min-height: 3.15rem;
    padding-inline: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ce-component__button,
  .ce-component__button-fill {
    transition: none;
  }

  .ce-component__button:is(:hover, :focus-visible) {
    transform: none;
  }
}
